Date: Tue, 23 May 2000 14:02:39 -0400 From: Joy Ganguly <joy@niksun.com> To: freebsd-hackers <freebsd-hackers@freeBSD.org> Subject: disk buffer allocation?? Message-ID: <392AC7BF.C458DD75@falcon.niksun.com>
next in thread | raw e-mail | index | archive | help
hi all, i am working on a project to do a zero copy tranfer from a netwrok buffer to a file. i need to know about buffer allocation in freeBSD. ive read the source but there are a few queries: i) what is meant by the B_MALLOC flag?? it seems if this flag is set the buffers memory is malloced and b_data point to the malloced area. but then where does b_kvabase point to ?? The buffers memory is allocated in allocbuf() but its kva is allocated in getnewbuf(). ii) what does the B_LOCKED and B_BUSY flags mean?? iii) Is setting the B_INVAL flag enough to invalidate the buffer?? thanx in advance joy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?392AC7BF.C458DD75>