Home | History | Annotate | Download | only in nbfs

Lines Matching defs:nof

183 	struct nbfs_open_file *nof = NULL;
190 nof = alloc(sizeof(*nof));
191 memset(nof, 0, sizeof(*nof));
192 err = nbfs_fopen(&nof->f, special, fname);
195 err = FS_STAT(nof->f.f_ops)(&nof->f, &st);
198 nof->fileswitch_handle = fh;
199 LIST_INSERT_HEAD(&nbfs_open_files, nof, link);
203 r->r1 = (uint32_t)nof;
213 if (nof != NULL)
214 dealloc(nof, sizeof(*nof));
221 struct nbfs_open_file *nof = (struct nbfs_open_file *)r->r1;
227 err = FS_SEEK(nof->f.f_ops)(&nof->f, off, SEEK_SET);
230 err = FS_READ(nof->f.f_ops)(&nof->f, buf, size, NULL);
255 struct nbfs_open_file *nof = (struct nbfs_open_file *)r->r1;
260 err = nbfs_fclose(&nof->f);
263 LIST_REMOVE(nof, link);
264 dealloc(nof, sizeof(*nof));