Lines Matching defs:kbuf
76 void *kbuf;
83 kbuf = kmalloc(count, GFP_KERNEL);
84 if(kbuf == NULL)
87 err = os_read_file(state->fd, kbuf, count);
91 if(copy_to_user(buffer, kbuf, err))
95 kfree(kbuf);
103 void *kbuf;
110 kbuf = kmalloc(count, GFP_KERNEL);
111 if(kbuf == NULL)
115 if(copy_from_user(kbuf, buffer, count))
118 err = os_write_file(state->fd, kbuf, count);
124 kfree(kbuf);