Lines Matching refs:dh

3235 	struct drbd_genlmsghdr *dh;  in drbd_adm_dump_resources()  local
3260 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3264 if (!dh) in drbd_adm_dump_resources()
3266 dh->minor = -1U; in drbd_adm_dump_resources()
3267 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3283 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3350 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3383 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3387 if (!dh) in drbd_adm_dump_devices()
3389 dh->ret_code = retcode; in drbd_adm_dump_devices()
3390 dh->minor = -1U; in drbd_adm_dump_devices()
3392 dh->minor = device->minor; in drbd_adm_dump_devices()
3416 genlmsg_end(skb, dh); in drbd_adm_dump_devices()
3439 struct drbd_genlmsghdr *dh; in drbd_adm_dump_connections() local
3509 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_connections()
3513 if (!dh) in drbd_adm_dump_connections()
3515 dh->ret_code = retcode; in drbd_adm_dump_connections()
3516 dh->minor = -1U; in drbd_adm_dump_connections()
3539 genlmsg_end(skb, dh); in drbd_adm_dump_connections()
3602 struct drbd_genlmsghdr *dh; in drbd_adm_dump_peer_devices() local
3651 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_peer_devices()
3655 if (!dh) in drbd_adm_dump_peer_devices()
3657 dh->ret_code = retcode; in drbd_adm_dump_peer_devices()
3658 dh->minor = -1U; in drbd_adm_dump_peer_devices()
3663 dh->minor = minor; in drbd_adm_dump_peer_devices()
3678 genlmsg_end(skb, dh); in drbd_adm_dump_peer_devices()
3849 struct drbd_genlmsghdr *dh; in get_one_status() local
3912 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in get_one_status()
3915 if (!dh) in get_one_status()
3924 dh->minor = -1U; in get_one_status()
3925 dh->ret_code = NO_ERROR; in get_one_status()
3942 dh->minor = device_to_minor(device); in get_one_status()
3943 dh->ret_code = NO_ERROR; in get_one_status()
3947 genlmsg_cancel(skb, dh); in get_one_status()
3951 genlmsg_end(skb, dh); in get_one_status()
4270 struct drbd_genlmsghdr *dh = info->userhdr; in drbd_adm_new_minor() local
4279 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
4300 retcode = drbd_create_device(&adm_ctx, dh->minor); in drbd_adm_new_minor()
4308 device = minor_to_device(dh->minor); in drbd_adm_new_minor()
4561 struct drbd_genlmsghdr *dh; in notify_resource_state() local
4575 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); in notify_resource_state()
4576 if (!dh) in notify_resource_state()
4578 dh->minor = -1U; in notify_resource_state()
4579 dh->ret_code = NO_ERROR; in notify_resource_state()
4589 genlmsg_end(skb, dh); in notify_resource_state()
4613 struct drbd_genlmsghdr *dh; in notify_device_state() local
4627 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); in notify_device_state()
4628 if (!dh) in notify_device_state()
4630 dh->minor = device->minor; in notify_device_state()
4631 dh->ret_code = NO_ERROR; in notify_device_state()
4639 genlmsg_end(skb, dh); in notify_device_state()
4663 struct drbd_genlmsghdr *dh; in notify_connection_state() local
4677 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); in notify_connection_state()
4678 if (!dh) in notify_connection_state()
4680 dh->minor = -1U; in notify_connection_state()
4681 dh->ret_code = NO_ERROR; in notify_connection_state()
4689 genlmsg_end(skb, dh); in notify_connection_state()
4714 struct drbd_genlmsghdr *dh; in notify_peer_device_state() local
4728 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); in notify_peer_device_state()
4729 if (!dh) in notify_peer_device_state()
4731 dh->minor = -1U; in notify_peer_device_state()
4732 dh->ret_code = NO_ERROR; in notify_peer_device_state()
4740 genlmsg_end(skb, dh); in notify_peer_device_state()
4765 struct drbd_genlmsghdr *dh; in notify_helper() local
4778 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); in notify_helper()
4779 if (!dh) in notify_helper()
4781 dh->minor = device ? device->minor : -1; in notify_helper()
4782 dh->ret_code = NO_ERROR; in notify_helper()
4788 genlmsg_end(skb, dh); in notify_helper()
4807 struct drbd_genlmsghdr *dh; in notify_initial_state_done() local
4811 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); in notify_initial_state_done()
4812 if (!dh) in notify_initial_state_done()
4814 dh->minor = -1U; in notify_initial_state_done()
4815 dh->ret_code = NO_ERROR; in notify_initial_state_done()
4818 genlmsg_end(skb, dh); in notify_initial_state_done()