Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 1998 12:10:23 -0400 (EDT)
From:      zhihuizhang <bf20761@binghamton.edu>
To:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Question on buffer's use count
Message-ID:  <Pine.SOL.L3.93.981008120801.3962A-100000@bingsun1>

next in thread | raw e-mail | index | archive | help

I am reading the source code in vfs_bio.c.  I find that the use count of a
new buffer is set to be 4 (instead of 1) in getnewbuf().  In getblk(), we
increment the count at least twice if the buffer is in core and busy.  Can
anyone explain this stuff to me. 

Thanks for your help.

-------------------------------------------------- 
| Zhihui Zhang, http://cs.binghamton.edu/~zzhang |
| Dept. of Computer Science,  SUNY at Binghamton |
--------------------------------------------------


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?Pine.SOL.L3.93.981008120801.3962A-100000>