Lines Matching defs:kbuf
531 struct dlm_write_request *kbuf;
548 kbuf = memdup_user_nul(buf, count);
549 if (IS_ERR(kbuf))
550 return PTR_ERR(kbuf);
552 if (check_version(kbuf)) {
558 if (!kbuf->is64bit) {
565 k32buf = (struct dlm_write_request32 *)kbuf;
568 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1,
570 if (!kbuf) {
578 compat_input(kbuf, k32buf, namelen);
584 if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) &&
592 switch (kbuf->cmd)
599 error = device_user_lock(proc, &kbuf->i.lock);
607 error = device_user_unlock(proc, &kbuf->i.lock);
615 error = device_user_deadlock(proc, &kbuf->i.lock);
623 error = device_create_lockspace(&kbuf->i.lspace);
631 error = device_remove_lockspace(&kbuf->i.lspace);
639 error = device_user_purge(proc, &kbuf->i.purge);
644 kbuf->cmd);
648 kfree(kbuf);