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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to