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

IF_ENQUEUE(9r)

NAME

IF_ENQUEUE - Network: Adds an entry to the end of the output queue

SYNOPSIS

#include <net/if.h> void IF_ENQUEUE( struct ifqueue *ifq, struct mbuf *m );

ARGUMENTS

ifq Specifies a pointer to an ifqueue data structure. This data structure represents the output queue. Typically, a network driver references this queue through the if_snd member of the ifnet structure pointer. m Specifies a pointer to an mbuf data structure. This data structure contains the memory buffer information that IF_ENQUEUE() manipulates.

DESCRIPTION

The IF_ENQUEUE() routine adds an entry to the end of the output queue. Specifically, IF_ENQUEUE() performs the following tasks: · Performs a simple lock on the entry in the queue. · Adds the entry to the queue by operating on various members of the ifqueue and mbuf structures. · Unlocks the simple lock on the entry in the queue.

NOTES

You should raise the IPL to mask all LAN hardware interrupts by calling splimp() prior to calling the IF_ENQUEUE() routine.

RETURN VALUES

None

FILES

<if.h>

SEE ALSO

Routines: IF_DEQUEUE(9r), IF_PREPEND(9r)

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