Lines Matching +full:1 +full:kb

33 static int dlm_monitor_unused = 1;
88 static void compat_input(struct dlm_write_request *kb, in compat_input() argument
92 kb->version[0] = kb32->version[0]; in compat_input()
93 kb->version[1] = kb32->version[1]; in compat_input()
94 kb->version[2] = kb32->version[2]; in compat_input()
96 kb->cmd = kb32->cmd; in compat_input()
97 kb->is64bit = kb32->is64bit; in compat_input()
98 if (kb->cmd == DLM_USER_CREATE_LOCKSPACE || in compat_input()
99 kb->cmd == DLM_USER_REMOVE_LOCKSPACE) { in compat_input()
100 kb->i.lspace.flags = kb32->i.lspace.flags; in compat_input()
101 kb->i.lspace.minor = kb32->i.lspace.minor; in compat_input()
102 memcpy(kb->i.lspace.name, kb32->i.lspace.name, namelen); in compat_input()
103 } else if (kb->cmd == DLM_USER_PURGE) { in compat_input()
104 kb->i.purge.nodeid = kb32->i.purge.nodeid; in compat_input()
105 kb->i.purge.pid = kb32->i.purge.pid; in compat_input()
107 kb->i.lock.mode = kb32->i.lock.mode; in compat_input()
108 kb->i.lock.namelen = kb32->i.lock.namelen; in compat_input()
109 kb->i.lock.flags = kb32->i.lock.flags; in compat_input()
110 kb->i.lock.lkid = kb32->i.lock.lkid; in compat_input()
111 kb->i.lock.parent = kb32->i.lock.parent; in compat_input()
112 kb->i.lock.xid = kb32->i.lock.xid; in compat_input()
113 kb->i.lock.timeout = kb32->i.lock.timeout; in compat_input()
114 kb->i.lock.castparam = (__user void *)(long)kb32->i.lock.castparam; in compat_input()
115 kb->i.lock.castaddr = (__user void *)(long)kb32->i.lock.castaddr; in compat_input()
116 kb->i.lock.bastparam = (__user void *)(long)kb32->i.lock.bastparam; in compat_input()
117 kb->i.lock.bastaddr = (__user void *)(long)kb32->i.lock.bastaddr; in compat_input()
118 kb->i.lock.lksb = (__user void *)(long)kb32->i.lock.lksb; in compat_input()
119 memcpy(kb->i.lock.lvb, kb32->i.lock.lvb, DLM_USER_LVB_LEN); in compat_input()
120 memcpy(kb->i.lock.name, kb32->i.lock.name, namelen); in compat_input()
130 res32->version[1] = res->version[1]; in compat_output()
163 lkb->lkb_last_bast_mode = -1; in dlm_purge_lkb_callbacks()
169 1. a noqueue request fails with EAGAIN
181 return 1; in lkb_is_endoflife()
187 return 1; in lkb_is_endoflife()
237 WARN_ON_ONCE(1); in dlm_user_add_ast()
247 WARN_ON_ONCE(1); in dlm_user_add_ast()
489 req->version[1] > DLM_DEVICE_VERSION_MINOR)) { in check_version()
496 req->version[1], in check_version()
567 /* add 1 after namelen so that the name string is terminated */ in device_write()
568 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1, in device_write()
727 result.version[1] = DLM_DEVICE_VERSION_MINOR; in copy_result_to_user()
792 ver.version[1] = DLM_DEVICE_VERSION_MINOR; in copy_version_to_user()
881 WARN_ON_ONCE(1); in device_read()
890 WARN_ON_ONCE(1); in device_read()
901 dlm_lvb_operations[old_mode + 1][new_mode + 1]) in device_read()
902 copy_lvb = 1; in device_read()
952 return 1; in dlm_user_daemon_available()
954 return atomic_read(&dlm_monitor_opened) ? 1 : 0; in dlm_user_daemon_available()