Lines Matching defs:dh

1391 	struct drbd_genlmsghdr *dh = genl_info_userhdr(info);
1393 return 0 != (dh->flags & DRBD_GENL_F_SET_DEFAULTS);
3236 struct drbd_genlmsghdr *dh;
3261 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
3265 if (!dh)
3267 dh->minor = -1U;
3268 dh->ret_code = NO_ERROR;
3284 genlmsg_end(skb, dh);
3351 struct drbd_genlmsghdr *dh;
3384 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
3388 if (!dh)
3390 dh->ret_code = retcode;
3391 dh->minor = -1U;
3393 dh->minor = device->minor;
3417 genlmsg_end(skb, dh);
3440 struct drbd_genlmsghdr *dh;
3510 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
3514 if (!dh)
3516 dh->ret_code = retcode;
3517 dh->minor = -1U;
3540 genlmsg_end(skb, dh);
3603 struct drbd_genlmsghdr *dh;
3652 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
3656 if (!dh)
3658 dh->ret_code = retcode;
3659 dh->minor = -1U;
3664 dh->minor = minor;
3679 genlmsg_end(skb, dh);
3850 struct drbd_genlmsghdr *dh;
3913 dh = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
3916 if (!dh)
3925 dh->minor = -1U;
3926 dh->ret_code = NO_ERROR;
3943 dh->minor = device_to_minor(device);
3944 dh->ret_code = NO_ERROR;
3948 genlmsg_cancel(skb, dh);
3952 genlmsg_end(skb, dh);
4271 struct drbd_genlmsghdr *dh = genl_info_userhdr(info);
4280 if (dh->minor > MINORMASK) {
4301 retcode = drbd_create_device(&adm_ctx, dh->minor);
4309 device = minor_to_device(dh->minor);
4562 struct drbd_genlmsghdr *dh;
4576 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_RESOURCE_STATE);
4577 if (!dh)
4579 dh->minor = -1U;
4580 dh->ret_code = NO_ERROR;
4590 genlmsg_end(skb, dh);
4614 struct drbd_genlmsghdr *dh;
4628 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_DEVICE_STATE);
4629 if (!dh)
4631 dh->minor = device->minor;
4632 dh->ret_code = NO_ERROR;
4640 genlmsg_end(skb, dh);
4664 struct drbd_genlmsghdr *dh;
4678 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_CONNECTION_STATE);
4679 if (!dh)
4681 dh->minor = -1U;
4682 dh->ret_code = NO_ERROR;
4690 genlmsg_end(skb, dh);
4715 struct drbd_genlmsghdr *dh;
4729 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_PEER_DEVICE_STATE);
4730 if (!dh)
4732 dh->minor = -1U;
4733 dh->ret_code = NO_ERROR;
4741 genlmsg_end(skb, dh);
4766 struct drbd_genlmsghdr *dh;
4779 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_HELPER);
4780 if (!dh)
4782 dh->minor = device ? device->minor : -1;
4783 dh->ret_code = NO_ERROR;
4789 genlmsg_end(skb, dh);
4808 struct drbd_genlmsghdr *dh;
4812 dh = genlmsg_put(skb, 0, seq, &drbd_genl_family, 0, DRBD_INITIAL_STATE_DONE);
4813 if (!dh)
4815 dh->minor = -1U;
4816 dh->ret_code = NO_ERROR;
4819 genlmsg_end(skb, dh);