[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

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.

Related Information

The del_domain_af kernel service.

Network Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]