Lines Matching refs:dh
3301 struct drbd_genlmsghdr *dh; in drbd_adm_dump_resources() local
3326 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3330 if (!dh) in drbd_adm_dump_resources()
3332 dh->minor = -1U; in drbd_adm_dump_resources()
3333 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3349 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3416 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3449 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3453 if (!dh) in drbd_adm_dump_devices()
3455 dh->ret_code = retcode; in drbd_adm_dump_devices()
3456 dh->minor = -1U; in drbd_adm_dump_devices()
3458 dh->minor = device->minor; in drbd_adm_dump_devices()
3482 genlmsg_end(skb, dh); in drbd_adm_dump_devices()
3505 struct drbd_genlmsghdr *dh; in drbd_adm_dump_connections() local
3575 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_connections()
3579 if (!dh) in drbd_adm_dump_connections()
3581 dh->ret_code = retcode; in drbd_adm_dump_connections()
3582 dh->minor = -1U; in drbd_adm_dump_connections()
3605 genlmsg_end(skb, dh); in drbd_adm_dump_connections()
3668 struct drbd_genlmsghdr *dh; in drbd_adm_dump_peer_devices() local
3717 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_peer_devices()
3721 if (!dh) in drbd_adm_dump_peer_devices()
3723 dh->ret_code = retcode; in drbd_adm_dump_peer_devices()
3724 dh->minor = -1U; in drbd_adm_dump_peer_devices()
3729 dh->minor = minor; in drbd_adm_dump_peer_devices()
3744 genlmsg_end(skb, dh); in drbd_adm_dump_peer_devices()
3915 struct drbd_genlmsghdr *dh; in get_one_status() local
3978 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in get_one_status()
3981 if (!dh) in get_one_status()
3990 dh->minor = -1U; in get_one_status()
3991 dh->ret_code = NO_ERROR; in get_one_status()
4008 dh->minor = device_to_minor(device); in get_one_status()
4009 dh->ret_code = NO_ERROR; in get_one_status()
4013 genlmsg_cancel(skb, dh); in get_one_status()
4017 genlmsg_end(skb, dh); in get_one_status()
4336 struct drbd_genlmsghdr *dh = info->userhdr; in drbd_adm_new_minor() local
4345 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
4366 retcode = drbd_create_device(&adm_ctx, dh->minor); in drbd_adm_new_minor()
4374 device = minor_to_device(dh->minor); in drbd_adm_new_minor()
4627 struct drbd_genlmsghdr *dh; in notify_resource_state() local
4641 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); in notify_resource_state()
4642 if (!dh) in notify_resource_state()
4644 dh->minor = -1U; in notify_resource_state()
4645 dh->ret_code = NO_ERROR; in notify_resource_state()
4655 genlmsg_end(skb, dh); in notify_resource_state()
4679 struct drbd_genlmsghdr *dh; in notify_device_state() local
4693 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); in notify_device_state()
4694 if (!dh) in notify_device_state()
4696 dh->minor = device->minor; in notify_device_state()
4697 dh->ret_code = NO_ERROR; in notify_device_state()
4705 genlmsg_end(skb, dh); in notify_device_state()
4729 struct drbd_genlmsghdr *dh; in notify_connection_state() local
4743 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); in notify_connection_state()
4744 if (!dh) in notify_connection_state()
4746 dh->minor = -1U; in notify_connection_state()
4747 dh->ret_code = NO_ERROR; in notify_connection_state()
4755 genlmsg_end(skb, dh); in notify_connection_state()
4780 struct drbd_genlmsghdr *dh; in notify_peer_device_state() local
4794 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); in notify_peer_device_state()
4795 if (!dh) in notify_peer_device_state()
4797 dh->minor = -1U; in notify_peer_device_state()
4798 dh->ret_code = NO_ERROR; in notify_peer_device_state()
4806 genlmsg_end(skb, dh); in notify_peer_device_state()
4831 struct drbd_genlmsghdr *dh; in notify_helper() local
4844 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); in notify_helper()
4845 if (!dh) in notify_helper()
4847 dh->minor = device ? device->minor : -1; in notify_helper()
4848 dh->ret_code = NO_ERROR; in notify_helper()
4854 genlmsg_end(skb, dh); in notify_helper()
4873 struct drbd_genlmsghdr *dh; in notify_initial_state_done() local
4877 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); in notify_initial_state_done()
4878 if (!dh) in notify_initial_state_done()
4880 dh->minor = -1U; in notify_initial_state_done()
4881 dh->ret_code = NO_ERROR; in notify_initial_state_done()
4884 genlmsg_end(skb, dh); in notify_initial_state_done()