code:clrbuf - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
- 清零 指定缓存管理块对应的缓存块
- 共传入一个参数 bp
- bp : 指定的缓存管理块
5035
5036 /* Zero the core associated with a buffer.
5037 */
5038 clrbuf(bp)
5039 int *bp;
5040 {
5041 register *p;
5042 register c;
5043
5044 p = bp->b_addr;
5045 c = 256;
5046 do
5047 *p++ = 0;
5048 while(--c);
5049 }
5050 /* ------------------------- */