Lines Matching refs:nbytes
56 * nbytes - The maximum size of the user-provided buffer
64 ssize_t file_read(struct file *filep, void *buf, size_t nbytes)
93 ret = (int)filep->ops->read(filep, (char *)buf, (size_t)nbytes);
118 * nbytes - The maximum size of the user-provided buffer
126 ssize_t read(int fd, void *buf, size_t nbytes)
128 if (buf == NULL || nbytes < 0)
150 if (buf != NULL && nbytes > 0)
152 buf = malloc(nbytes);
160 ret = recv(fd, buf, nbytes, 0);
215 return file_read(filep, buf, nbytes);