Lines Matching defs:kbuf
72 void *kbuf;
79 kbuf = kmalloc(count, GFP_KERNEL);
80 if (kbuf == NULL)
83 err = os_read_file(state->fd, kbuf, count);
87 if (copy_to_user(buffer, kbuf, err))
91 kfree(kbuf);
99 void *kbuf;
106 kbuf = kmalloc(count, GFP_KERNEL);
107 if (kbuf == NULL)
111 if (copy_from_user(kbuf, buffer, count))
114 err = os_write_file(state->fd, kbuf, count);
120 kfree(kbuf);