Lines Matching refs:dh
3298 struct drbd_genlmsghdr *dh; in drbd_adm_dump_resources() local
3323 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3327 if (!dh) in drbd_adm_dump_resources()
3329 dh->minor = -1U; in drbd_adm_dump_resources()
3330 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3346 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3413 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3446 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3450 if (!dh) in drbd_adm_dump_devices()
3452 dh->ret_code = retcode; in drbd_adm_dump_devices()
3453 dh->minor = -1U; in drbd_adm_dump_devices()
3455 dh->minor = device->minor; in drbd_adm_dump_devices()
3479 genlmsg_end(skb, dh); in drbd_adm_dump_devices()
3502 struct drbd_genlmsghdr *dh; in drbd_adm_dump_connections() local
3572 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_connections()
3576 if (!dh) in drbd_adm_dump_connections()
3578 dh->ret_code = retcode; in drbd_adm_dump_connections()
3579 dh->minor = -1U; in drbd_adm_dump_connections()
3602 genlmsg_end(skb, dh); in drbd_adm_dump_connections()
3665 struct drbd_genlmsghdr *dh; in drbd_adm_dump_peer_devices() local
3714 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_peer_devices()
3718 if (!dh) in drbd_adm_dump_peer_devices()
3720 dh->ret_code = retcode; in drbd_adm_dump_peer_devices()
3721 dh->minor = -1U; in drbd_adm_dump_peer_devices()
3726 dh->minor = minor; in drbd_adm_dump_peer_devices()
3741 genlmsg_end(skb, dh); in drbd_adm_dump_peer_devices()
3912 struct drbd_genlmsghdr *dh; in get_one_status() local
3975 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in get_one_status()
3978 if (!dh) in get_one_status()
3987 dh->minor = -1U; in get_one_status()
3988 dh->ret_code = NO_ERROR; in get_one_status()
4005 dh->minor = device_to_minor(device); in get_one_status()
4006 dh->ret_code = NO_ERROR; in get_one_status()
4010 genlmsg_cancel(skb, dh); in get_one_status()
4014 genlmsg_end(skb, dh); in get_one_status()
4333 struct drbd_genlmsghdr *dh = info->userhdr; in drbd_adm_new_minor() local
4342 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
4363 retcode = drbd_create_device(&adm_ctx, dh->minor); in drbd_adm_new_minor()
4371 device = minor_to_device(dh->minor); in drbd_adm_new_minor()
4624 struct drbd_genlmsghdr *dh; in notify_resource_state() local
4638 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); in notify_resource_state()
4639 if (!dh) in notify_resource_state()
4641 dh->minor = -1U; in notify_resource_state()
4642 dh->ret_code = NO_ERROR; in notify_resource_state()
4652 genlmsg_end(skb, dh); in notify_resource_state()
4675 struct drbd_genlmsghdr *dh; in notify_device_state() local
4689 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); in notify_device_state()
4690 if (!dh) in notify_device_state()
4692 dh->minor = device->minor; in notify_device_state()
4693 dh->ret_code = NO_ERROR; in notify_device_state()
4701 genlmsg_end(skb, dh); in notify_device_state()
4724 struct drbd_genlmsghdr *dh; in notify_connection_state() local
4738 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); in notify_connection_state()
4739 if (!dh) in notify_connection_state()
4741 dh->minor = -1U; in notify_connection_state()
4742 dh->ret_code = NO_ERROR; in notify_connection_state()
4750 genlmsg_end(skb, dh); in notify_connection_state()
4774 struct drbd_genlmsghdr *dh; in notify_peer_device_state() local
4788 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); in notify_peer_device_state()
4789 if (!dh) in notify_peer_device_state()
4791 dh->minor = -1U; in notify_peer_device_state()
4792 dh->ret_code = NO_ERROR; in notify_peer_device_state()
4800 genlmsg_end(skb, dh); in notify_peer_device_state()
4824 struct drbd_genlmsghdr *dh; in notify_helper() local
4837 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); in notify_helper()
4838 if (!dh) in notify_helper()
4840 dh->minor = device ? device->minor : -1; in notify_helper()
4841 dh->ret_code = NO_ERROR; in notify_helper()
4847 genlmsg_end(skb, dh); in notify_helper()
4866 struct drbd_genlmsghdr *dh; in notify_initial_state_done() local
4870 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); in notify_initial_state_done()
4871 if (!dh) in notify_initial_state_done()
4873 dh->minor = -1U; in notify_initial_state_done()
4874 dh->ret_code = NO_ERROR; in notify_initial_state_done()
4877 genlmsg_end(skb, dh); in notify_initial_state_done()