 |
Index for Section 9 |
|
 |
Alphabetical listing for M |
|
 |
Bottom of page |
|
MCLGET2(9r)
NAME
MCLGET2 - Network: Allocates a 2K byte data buffer and links it to an mbuf
structure
SYNOPSIS
#include <sys/mbuf.h>
void MCLGET2(
struct mbuf *m,
int canwait );
ARGUMENTS
m Specifies a pointer to a previously allocated mbuf structure.
canwait
When set to true, specifies that the routine can wait for the memory to
become available. In general, this argument can be set to true as long
as no locks are being held and the caller is not running at interrupt
level or with interrupts disabled.
DESCRIPTION
The MCLGET2() routine allocates a 2K byte data buffer and links the
supplied mbuf structure to the data buffer.
NOTES
On successful completion, the M_EXT bit is set in the mh_flags member of
the mbuf data structure.
RETURN VALUES
None
SEE ALSO
Routines: MGET(9r), MGETHDR(9r), MCLGET(9r)
Data Structures: mbuf(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for M |
|
 |
Top of page |
|