17.7 binit (5055)

This procedure is called by “main” (1614) to initialise the buffer pool. Empty, doubly linked circular lists are set up:

For each buffer:

The number of block devices is recorded as “nblkdev”. This is used for checking values for “dev” in “getblk” (4927), “getmdev” (6192) and “openi” (6720). Inspection of “bdevsw” (4656) shows that “nblkdev” will be set to eight whereas the value one is what is really required.

This result could be obtained by “editing” as follows:

    /5084/m/5081/ "nblkdev=i;
    /5083/m/5077/ "i++