Lines Matching defs:kbuf
505 struct dlm_write_request *kbuf;
522 kbuf = memdup_user_nul(buf, count);
523 if (IS_ERR(kbuf))
524 return PTR_ERR(kbuf);
526 if (check_version(kbuf)) {
532 if (!kbuf->is64bit) {
539 k32buf = (struct dlm_write_request32 *)kbuf;
542 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1,
544 if (!kbuf) {
552 compat_input(kbuf, k32buf, namelen);
558 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) &&
566 switch (kbuf->cmd)
573 error = device_user_lock(proc, &kbuf->i.lock);
581 error = device_user_unlock(proc, &kbuf->i.lock);
589 error = device_user_deadlock(proc, &kbuf->i.lock);
597 error = device_create_lockspace(&kbuf->i.lspace);
605 error = device_remove_lockspace(&kbuf->i.lspace);
613 error = device_user_purge(proc, &kbuf->i.purge);
618 kbuf->cmd);
622 kfree(kbuf);