Lines Matching defs:kbuf
515 struct dlm_write_request *kbuf;
526 kbuf = kzalloc(count + 1, GFP_NOFS);
527 if (!kbuf)
530 if (copy_from_user(kbuf, buf, count)) {
535 if (check_version(kbuf)) {
541 if (!kbuf->is64bit) {
548 k32buf = (struct dlm_write_request32 *)kbuf;
551 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1,
553 if (!kbuf) {
561 compat_input(kbuf, k32buf, namelen);
567 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) &&
578 switch (kbuf->cmd)
585 error = device_user_lock(proc, &kbuf->i.lock);
593 error = device_user_unlock(proc, &kbuf->i.lock);
601 error = device_user_deadlock(proc, &kbuf->i.lock);
609 error = device_create_lockspace(&kbuf->i.lspace);
617 error = device_remove_lockspace(&kbuf->i.lspace);
625 error = device_user_purge(proc, &kbuf->i.purge);
630 kbuf->cmd);
637 kfree(kbuf);