 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Bottom of page |
|
IF_PREPEND(9r)
NAME
IF_PREPEND - Network: Adds an entry to the front of the output queue
SYNOPSIS
#include <net/if.h>
void IF_PREPEND(
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's start
interface 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-related information that IF_PREPEND()
manipulates.
DESCRIPTION
The IF_PREPEND() routine adds an entry to the front of the output queue.
Specifically, IF_PREPEND() performs the following tasks:
· Performs a simple lock on the entry in the queue.
· Puts an entry on the beginning of the output queue by operating on
various members of the passed in 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_PREPEND() routine.
RETURN VALUES
None
FILES
<net/if.h>
SEE ALSO
Routines: IF_DEQUEUE(9r), IF_ENQUEUE(9r)
Data Structures: mbuf(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Top of page |
|