Lines Matching refs:head
104 static fileid_t *head; variable
121 head = (fileid_t *)bkmem_alloc(sizeof (fileid_t)); in bpcfs_mountroot()
122 head->fi_back = head->fi_forw = head; in bpcfs_mountroot()
123 head->fi_filedes = 0; in bpcfs_mountroot()
124 head->fi_taken = 0; in bpcfs_mountroot()
127 head->fi_blocknum = 0; in bpcfs_mountroot()
128 head->fi_count = SECSIZ; in bpcfs_mountroot()
129 head->fi_memp = (caddr_t)pcfsp->f_sector; in bpcfs_mountroot()
130 if (diskread(head)) { in bpcfs_mountroot()
174 head->fi_blocknum = nsec_start = in bpcfs_mountroot()
176 head->fi_count = nsec_cache * SECSIZ; in bpcfs_mountroot()
177 head->fi_memp = cluster_cache; in bpcfs_mountroot()
178 if (diskread(head)) { in bpcfs_mountroot()
214 filep->fi_back = head->fi_back; in bpcfs_open()
215 filep->fi_forw = head; in bpcfs_open()
216 head->fi_back->fi_forw = filep; in bpcfs_open()
217 head->fi_back = filep; in bpcfs_open()
244 if (filep->fi_taken == 0 || filep == head) { in bpcfs_close()
263 while ((filep = head->fi_forw) != head) in bpcfs_closeall()
268 bkmem_free(head, sizeof (fileid_t)); in bpcfs_closeall()
270 head = NULL; in bpcfs_closeall()
383 fileid_t *filep = head; in find_fp()
386 while ((filep = filep->fi_forw) != head) in find_fp()
601 head->fi_blocknum = sector; in readblock()
602 head->fi_count = nsec * SECSIZ; in readblock()
603 head->fi_memp = head->fi_buf; in readblock()
604 if (diskread(head)) { in readblock()
609 return (head->fi_buf); in readblock()