Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!odin!sgihub!dragon!schuman From: schuman@sgi.com (Aaron Schuman) Newsgroups: comp.sys.sgi Subject: Re: How can I allocate big mbufs in a device driver? Message-ID: <1990Oct12.184141.18321@relay.wpd.sgi.com> Date: 12 Oct 90 18:41:41 GMT References: <2322@charon.cwi.nl> Sender: news@relay.wpd.sgi.com ( CNews Account ) Organization: Silicon Graphics 415-335-1901 Lines: 15 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;