add_domain_af Kernel Service

Purpose

Adds an address family to the Address Family domain switch table.

Syntax

#include <sys/types.h> #include <sys/errno.h> #include <sys/domain.h> int add_domain_af ( domain) struct domain *domain;

Parameter

Item Description
domain Specifies the domain of the address family.

Description

The add_domain_af kernel service adds an address family domain to the Address Family domain switch table.

Execution Environment

The add_domain_af kernel service can be called from either the process or interrupt environment.

Return Values

Item Description
0 Indicates that the address family was successfully added.
EEXIST Indicates that the address family was already added.
EINVAL Indicates that the address family number to be added is out of range.

Example

To add an address family to the Address Family domain switch table, invoke the add_domain_af kernel service as follows:

add_domain_af(&inetdomain);

In this example, the family to be added is inetdomain.