Index Index for
Section 9
Index Alphabetical
listing for I
Bottom of page Bottom of
page

if_dealloc(9r)

NAME

if_dealloc - Network: Frees the data structure previously allocated by if_alloc()

SYNOPSIS

int if_dealloc( struct ether_driver *ed );

ARGUMENTS

ed Specifies the address of the data structure previously allocated by if_alloc(). For network devices, this is the ether_driver data structure.

DESCRIPTION

The if_dealloc() routine frees up the memory allocated by if_alloc(). This is only done if the ifnet data structure, assumed to be at the head of the data structure passed in, was not used in an if_attach() call. If it was used in an if_attach() call, then if_dealloc() ensures that the data structure is moved to the list of detached network interfaces.

RETURN VALUES

ENODEV A NULL was passed in for ed. ESUCCESS The device was successfully decallocated or was found on the detached list.

SEE ALSO

Routines: if_alloc(9r), if_attach(9r), if_detach(9r) Data Structures: ifnet(9s)

Index Index for
Section 9
Index Alphabetical
listing for I
Top of page Top of
page