Lines Matching refs:dh

3307 	struct drbd_genlmsghdr *dh;  in drbd_adm_dump_resources()  local
3332 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3336 if (!dh) in drbd_adm_dump_resources()
3338 dh->minor = -1U; in drbd_adm_dump_resources()
3339 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3355 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3428 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3461 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3465 if (!dh) in drbd_adm_dump_devices()
3467 dh->ret_code = retcode; in drbd_adm_dump_devices()
3468 dh->minor = -1U; in drbd_adm_dump_devices()
3470 dh->minor = device->minor; in drbd_adm_dump_devices()
3494 genlmsg_end(skb, dh); in drbd_adm_dump_devices()
3517 struct drbd_genlmsghdr *dh; in drbd_adm_dump_connections() local
3587 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_connections()
3591 if (!dh) in drbd_adm_dump_connections()
3593 dh->ret_code = retcode; in drbd_adm_dump_connections()
3594 dh->minor = -1U; in drbd_adm_dump_connections()
3617 genlmsg_end(skb, dh); in drbd_adm_dump_connections()
3680 struct drbd_genlmsghdr *dh; in drbd_adm_dump_peer_devices() local
3729 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_peer_devices()
3733 if (!dh) in drbd_adm_dump_peer_devices()
3735 dh->ret_code = retcode; in drbd_adm_dump_peer_devices()
3736 dh->minor = -1U; in drbd_adm_dump_peer_devices()
3741 dh->minor = minor; in drbd_adm_dump_peer_devices()
3756 genlmsg_end(skb, dh); in drbd_adm_dump_peer_devices()
3928 struct drbd_genlmsghdr *dh; in get_one_status() local
3991 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in get_one_status()
3994 if (!dh) in get_one_status()
4003 dh->minor = -1U; in get_one_status()
4004 dh->ret_code = NO_ERROR; in get_one_status()
4021 dh->minor = device_to_minor(device); in get_one_status()
4022 dh->ret_code = NO_ERROR; in get_one_status()
4026 genlmsg_cancel(skb, dh); in get_one_status()
4030 genlmsg_end(skb, dh); in get_one_status()
4349 struct drbd_genlmsghdr *dh = info->userhdr; in drbd_adm_new_minor() local
4358 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
4379 retcode = drbd_create_device(&adm_ctx, dh->minor); in drbd_adm_new_minor()
4387 device = minor_to_device(dh->minor); in drbd_adm_new_minor()
4640 struct drbd_genlmsghdr *dh; in notify_resource_state() local
4654 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); in notify_resource_state()
4655 if (!dh) in notify_resource_state()
4657 dh->minor = -1U; in notify_resource_state()
4658 dh->ret_code = NO_ERROR; in notify_resource_state()
4668 genlmsg_end(skb, dh); in notify_resource_state()
4691 struct drbd_genlmsghdr *dh; in notify_device_state() local
4705 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); in notify_device_state()
4706 if (!dh) in notify_device_state()
4708 dh->minor = device->minor; in notify_device_state()
4709 dh->ret_code = NO_ERROR; in notify_device_state()
4717 genlmsg_end(skb, dh); in notify_device_state()
4740 struct drbd_genlmsghdr *dh; in notify_connection_state() local
4754 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); in notify_connection_state()
4755 if (!dh) in notify_connection_state()
4757 dh->minor = -1U; in notify_connection_state()
4758 dh->ret_code = NO_ERROR; in notify_connection_state()
4766 genlmsg_end(skb, dh); in notify_connection_state()
4790 struct drbd_genlmsghdr *dh; in notify_peer_device_state() local
4804 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); in notify_peer_device_state()
4805 if (!dh) in notify_peer_device_state()
4807 dh->minor = -1U; in notify_peer_device_state()
4808 dh->ret_code = NO_ERROR; in notify_peer_device_state()
4816 genlmsg_end(skb, dh); in notify_peer_device_state()
4840 struct drbd_genlmsghdr *dh; in notify_helper() local
4853 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); in notify_helper()
4854 if (!dh) in notify_helper()
4856 dh->minor = device ? device->minor : -1; in notify_helper()
4857 dh->ret_code = NO_ERROR; in notify_helper()
4863 genlmsg_end(skb, dh); in notify_helper()
4882 struct drbd_genlmsghdr *dh; in notify_initial_state_done() local
4886 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); in notify_initial_state_done()
4887 if (!dh) in notify_initial_state_done()
4889 dh->minor = -1U; in notify_initial_state_done()
4890 dh->ret_code = NO_ERROR; in notify_initial_state_done()
4893 genlmsg_end(skb, dh); in notify_initial_state_done()