How can I allocate big mbufs in a device driver?
Aaron Schuman
schuman at sgi.com
Sat Oct 13 04:41:41 AEST 1990
Jack Jansen asked for the calling sequence for m_vget. I hope this
brief code excerpt helps:
/* get a variable-sized cluster
* If you ask for a full page of CLBYTES bytes, you will get a full
* page in a different format.
*
* In any case, the length field will be set to the requested size.
*/
struct mbuf * /* 0 or little-mbuf-header */
m_vget(canwait, size, type)
int canwait; /* 1=ok to sleep */
int size; /* desired data size in bytes */
int type;
More information about the Comp.sys.sgi
mailing list