Lines Matching refs:dh

3253 	struct drbd_genlmsghdr *dh;  in drbd_adm_dump_resources()  local
3278 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_resources()
3282 if (!dh) in drbd_adm_dump_resources()
3284 dh->minor = -1U; in drbd_adm_dump_resources()
3285 dh->ret_code = NO_ERROR; in drbd_adm_dump_resources()
3301 genlmsg_end(skb, dh); in drbd_adm_dump_resources()
3374 struct drbd_genlmsghdr *dh; in drbd_adm_dump_devices() local
3407 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_devices()
3411 if (!dh) in drbd_adm_dump_devices()
3413 dh->ret_code = retcode; in drbd_adm_dump_devices()
3414 dh->minor = -1U; in drbd_adm_dump_devices()
3416 dh->minor = device->minor; in drbd_adm_dump_devices()
3440 genlmsg_end(skb, dh); in drbd_adm_dump_devices()
3463 struct drbd_genlmsghdr *dh; in drbd_adm_dump_connections() local
3533 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_connections()
3537 if (!dh) in drbd_adm_dump_connections()
3539 dh->ret_code = retcode; in drbd_adm_dump_connections()
3540 dh->minor = -1U; in drbd_adm_dump_connections()
3563 genlmsg_end(skb, dh); in drbd_adm_dump_connections()
3626 struct drbd_genlmsghdr *dh; in drbd_adm_dump_peer_devices() local
3675 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in drbd_adm_dump_peer_devices()
3679 if (!dh) in drbd_adm_dump_peer_devices()
3681 dh->ret_code = retcode; in drbd_adm_dump_peer_devices()
3682 dh->minor = -1U; in drbd_adm_dump_peer_devices()
3687 dh->minor = minor; in drbd_adm_dump_peer_devices()
3702 genlmsg_end(skb, dh); in drbd_adm_dump_peer_devices()
3874 struct drbd_genlmsghdr *dh; in get_one_status() local
3937 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, in get_one_status()
3940 if (!dh) in get_one_status()
3949 dh->minor = -1U; in get_one_status()
3950 dh->ret_code = NO_ERROR; in get_one_status()
3967 dh->minor = device_to_minor(device); in get_one_status()
3968 dh->ret_code = NO_ERROR; in get_one_status()
3972 genlmsg_cancel(skb, dh); in get_one_status()
3976 genlmsg_end(skb, dh); in get_one_status()
4295 struct drbd_genlmsghdr *dh = info->userhdr; in drbd_adm_new_minor() local
4304 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
4325 retcode = drbd_create_device(&adm_ctx, dh->minor); in drbd_adm_new_minor()
4333 device = minor_to_device(dh->minor); in drbd_adm_new_minor()
4586 struct drbd_genlmsghdr *dh; in notify_resource_state() local
4600 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE); in notify_resource_state()
4601 if (!dh) in notify_resource_state()
4603 dh->minor = -1U; in notify_resource_state()
4604 dh->ret_code = NO_ERROR; in notify_resource_state()
4614 genlmsg_end(skb, dh); in notify_resource_state()
4637 struct drbd_genlmsghdr *dh; in notify_device_state() local
4651 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE); in notify_device_state()
4652 if (!dh) in notify_device_state()
4654 dh->minor = device->minor; in notify_device_state()
4655 dh->ret_code = NO_ERROR; in notify_device_state()
4663 genlmsg_end(skb, dh); in notify_device_state()
4686 struct drbd_genlmsghdr *dh; in notify_connection_state() local
4700 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE); in notify_connection_state()
4701 if (!dh) in notify_connection_state()
4703 dh->minor = -1U; in notify_connection_state()
4704 dh->ret_code = NO_ERROR; in notify_connection_state()
4712 genlmsg_end(skb, dh); in notify_connection_state()
4736 struct drbd_genlmsghdr *dh; in notify_peer_device_state() local
4750 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE); in notify_peer_device_state()
4751 if (!dh) in notify_peer_device_state()
4753 dh->minor = -1U; in notify_peer_device_state()
4754 dh->ret_code = NO_ERROR; in notify_peer_device_state()
4762 genlmsg_end(skb, dh); in notify_peer_device_state()
4786 struct drbd_genlmsghdr *dh; in notify_helper() local
4799 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER); in notify_helper()
4800 if (!dh) in notify_helper()
4802 dh->minor = device ? device->minor : -1; in notify_helper()
4803 dh->ret_code = NO_ERROR; in notify_helper()
4809 genlmsg_end(skb, dh); in notify_helper()
4828 struct drbd_genlmsghdr *dh; in notify_initial_state_done() local
4832 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE); in notify_initial_state_done()
4833 if (!dh) in notify_initial_state_done()
4835 dh->minor = -1U; in notify_initial_state_done()
4836 dh->ret_code = NO_ERROR; in notify_initial_state_done()
4839 genlmsg_end(skb, dh); in notify_initial_state_done()