Lines Matching refs:cmd
163 const u8 cmd = info->genlhdr->cmd; in drbd_adm_prepare() local
169 if (cmd != DRBD_ADM_GET_STATUS && !capable(CAP_NET_ADMIN)) in drbd_adm_prepare()
179 info, &drbd_genl_family, 0, cmd); in drbd_adm_prepare()
354 int drbd_khelper(struct drbd_device *device, char *cmd) in drbd_khelper() argument
363 char *argv[] = {drbd_usermode_helper, cmd, mb, NULL }; in drbd_khelper()
378 drbd_info(device, "helper command: %s %s %s\n", drbd_usermode_helper, cmd, mb); in drbd_khelper()
380 sib.helper_name = cmd; in drbd_khelper()
382 notify_helper(NOTIFY_CALL, device, connection, cmd, 0); in drbd_khelper()
386 drbd_usermode_helper, cmd, mb, in drbd_khelper()
390 drbd_usermode_helper, cmd, mb, in drbd_khelper()
395 notify_helper(NOTIFY_RESPONSE, device, connection, cmd, ret); in drbd_khelper()
406 enum drbd_peer_state conn_khelper(struct drbd_connection *connection, char *cmd) in conn_khelper() argument
415 char *argv[] = {drbd_usermode_helper, cmd, resource_name, NULL }; in conn_khelper()
421 drbd_info(connection, "helper command: %s %s %s\n", drbd_usermode_helper, cmd, resource_name); in conn_khelper()
423 notify_helper(NOTIFY_CALL, NULL, connection, cmd, 0); in conn_khelper()
428 drbd_usermode_helper, cmd, resource_name, in conn_khelper()
432 drbd_usermode_helper, cmd, resource_name, in conn_khelper()
435 notify_helper(NOTIFY_RESPONSE, NULL, connection, cmd, ret); in conn_khelper()
793 if (info->genlhdr->cmd == DRBD_ADM_PRIMARY) in drbd_adm_set_role()