del_domain_af Kernel Service

Purpose

Deletes an address family from the Address Family domain switch table.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/domain.h>

int
del_domain_af (
domain)
struct domain *domain;

Parameter

Item Description
domain Specifies the address family.

Description

The del_domain_af kernel service deletes the address family specified by the domain parameter from the Address Family domain switch table.

Execution Environment

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

Return Value

Item Description
EINVAL Indicates that the specified address is not found in the Address Family domain switch table.

Example

To delete an address family from the Address Family domain switch table, invoke the del_domain_af kernel service as follows:

del_domain_af(&inetdomain);

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