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

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

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 .

Implementation Specifics

The add_domain_af kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The del_domain_af kernel service.

Network Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.