Lines Matching refs:fdes
90 static file_t *nvf_getf(int fdes);
91 static void nvf_releasef(int fdes);
95 static int nvf_close(int fdes);
98 static ssize_t nvf_read(int fdes, void *cbuf, ssize_t count);
99 static ssize_t nvf_write(int fdes, void *cbuf, ssize_t count);
1216 nvf_getf(int fdes) in nvf_getf() argument
1221 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_getf()
1222 fp = nvf_fd[fdes]; in nvf_getf()
1235 nvf_releasef(int fdes) in nvf_releasef() argument
1240 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_releasef()
1241 fp = nvf_fd[fdes]; in nvf_releasef()
1270 nvf_freef(int fdes) in nvf_freef() argument
1275 if ((fdes >= 0) && (fdes < NVF_GETF)) { in nvf_freef()
1276 fp = nvf_fd[fdes]; in nvf_freef()
1278 nvf_fd[fdes] = NULL; in nvf_freef()
1295 int fdes = -1; in nvf_open() local
1337 if ((fdes = nvf_setf(fp)) == -1) { in nvf_open()
1340 return (fdes); in nvf_open()
1347 nvf_close(int fdes) in nvf_close() argument
1352 if ((fp = nvf_getf(fdes)) == NULL) in nvf_close()
1362 nvf_freef(fdes); in nvf_close()
1389 nvf_rw(int fdes, void *cbuf, ssize_t count, enum uio_rw rw) in nvf_rw() argument
1395 if ((fp = nvf_getf(fdes)) == NULL) in nvf_rw()
1401 nvf_releasef(fdes); in nvf_rw()
1408 nvf_releasef(fdes); in nvf_rw()
1416 nvf_write(int fdes, void *cbuf, ssize_t count) in nvf_write() argument
1418 return (nvf_rw(fdes, cbuf, count, UIO_WRITE)); in nvf_write()
1425 nvf_read(int fdes, void *cbuf, ssize_t count) in nvf_read() argument
1427 return (nvf_rw(fdes, cbuf, count, UIO_READ)); in nvf_read()