Lines Matching refs:reply_skb
206 adm_ctx->reply_skb = genlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); in drbd_adm_prepare()
207 if (!adm_ctx->reply_skb) { in drbd_adm_prepare()
212 adm_ctx->reply_dh = genlmsg_put_reply(adm_ctx->reply_skb, in drbd_adm_prepare()
234 err = nla_put_nohdr(adm_ctx->reply_skb, in drbd_adm_prepare()
272 drbd_msg_put_info(adm_ctx->reply_skb, "unknown minor"); in drbd_adm_prepare()
276 drbd_msg_put_info(adm_ctx->reply_skb, "unknown resource"); in drbd_adm_prepare()
284 drbd_msg_put_info(adm_ctx->reply_skb, "no resource name expected"); in drbd_adm_prepare()
288 drbd_msg_put_info(adm_ctx->reply_skb, "no minor number expected"); in drbd_adm_prepare()
297 drbd_msg_put_info(adm_ctx->reply_skb, "unknown connection"); in drbd_adm_prepare()
308 drbd_msg_put_info(adm_ctx->reply_skb, "minor exists in different resource"); in drbd_adm_prepare()
317 drbd_msg_put_info(adm_ctx->reply_skb, "minor exists as different volume"); in drbd_adm_prepare()
332 nlmsg_free(adm_ctx->reply_skb); in drbd_adm_prepare()
333 adm_ctx->reply_skb = NULL; in drbd_adm_prepare()
353 if (err && !adm_ctx->reply_skb) { in drbd_pre_doit()
373 if (adm_ctx->reply_skb) in drbd_post_doit()
374 drbd_adm_send_reply(adm_ctx->reply_skb, info); in drbd_post_doit()
839 if (!adm_ctx->reply_skb) in drbd_adm_set_role()
850 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_set_role()
1587 if (!adm_ctx->reply_skb) in drbd_adm_disk_opts()
1618 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_disk_opts()
1644 drbd_msg_put_info(adm_ctx->reply_skb, in drbd_adm_disk_opts()
1818 if (!adm_ctx->reply_skb) in drbd_adm_attach()
1870 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_attach()
2021 drbd_msg_sprintf_info(adm_ctx->reply_skb, in drbd_adm_attach()
2246 if (!adm_ctx->reply_skb) in drbd_adm_detach()
2256 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_detach()
2448 if (!adm_ctx->reply_skb) in drbd_adm_net_opts()
2470 drbd_msg_put_info(adm_ctx->reply_skb, "net conf missing, try connect"); in drbd_adm_net_opts()
2482 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_net_opts()
2594 if (!adm_ctx->reply_skb) in drbd_adm_connect()
2600 drbd_msg_put_info(adm_ctx->reply_skb, "connection endpoint(s) missing"); in drbd_adm_connect()
2647 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_connect()
2802 if (!adm_ctx->reply_skb) in drbd_adm_disconnect()
2814 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_disconnect()
2861 if (!adm_ctx->reply_skb) in drbd_adm_resize()
2881 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_resize()
2991 if (!adm_ctx->reply_skb) in drbd_adm_resource_opts()
3004 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_resource_opts()
3028 if (!adm_ctx->reply_skb) in drbd_adm_invalidate()
3076 if (!adm_ctx->reply_skb) in drbd_adm_simple_request_state()
3106 if (!adm_ctx->reply_skb) in drbd_adm_invalidate_peer()
3156 if (!adm_ctx->reply_skb) in drbd_adm_pause_sync()
3177 if (!adm_ctx->reply_skb) in drbd_adm_resume_sync()
3210 if (!adm_ctx->reply_skb) in drbd_adm_resume_io()
3916 if (!adm_ctx->reply_skb) in drbd_adm_get_status()
3922 err = nla_put_status_info(adm_ctx->reply_skb, adm_ctx->device, NULL); in drbd_adm_get_status()
3924 nlmsg_free(adm_ctx->reply_skb); in drbd_adm_get_status()
3925 adm_ctx->reply_skb = NULL; in drbd_adm_get_status()
4117 if (!adm_ctx->reply_skb) in drbd_adm_get_timeout_type()
4128 err = timeout_parms_to_priv_skb(adm_ctx->reply_skb, &tp); in drbd_adm_get_timeout_type()
4130 nlmsg_free(adm_ctx->reply_skb); in drbd_adm_get_timeout_type()
4131 adm_ctx->reply_skb = NULL; in drbd_adm_get_timeout_type()
4146 if (!adm_ctx->reply_skb) in drbd_adm_start_ov()
4161 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_start_ov()
4194 if (!adm_ctx->reply_skb) in drbd_adm_new_c_uuid()
4206 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_new_c_uuid()
4267 drbd_msg_put_info(adm_ctx->reply_skb, "resource name missing"); in drbd_check_resource_name()
4273 drbd_msg_put_info(adm_ctx->reply_skb, "invalid resource name"); in drbd_check_resource_name()
4296 if (!adm_ctx->reply_skb) in drbd_adm_new_resource()
4306 drbd_msg_put_info(adm_ctx->reply_skb, from_attrs_err_to_txt(err)); in drbd_adm_new_resource()
4317 drbd_msg_put_info(adm_ctx->reply_skb, "resource exists"); in drbd_adm_new_resource()
4357 if (!adm_ctx->reply_skb) in drbd_adm_new_minor()
4364 drbd_msg_put_info(adm_ctx->reply_skb, "requested minor out of range"); in drbd_adm_new_minor()
4369 drbd_msg_put_info(adm_ctx->reply_skb, "requested volume id out of range"); in drbd_adm_new_minor()
4463 if (!adm_ctx->reply_skb) in drbd_adm_del_minor()
4516 if (!adm_ctx->reply_skb) in drbd_adm_down()
4531 drbd_msg_put_info(adm_ctx->reply_skb, "failed to demote"); in drbd_adm_down()
4538 drbd_msg_put_info(adm_ctx->reply_skb, "failed to disconnect"); in drbd_adm_down()
4547 drbd_msg_put_info(adm_ctx->reply_skb, "failed to detach"); in drbd_adm_down()
4557 drbd_msg_put_info(adm_ctx->reply_skb, "failed to delete volume"); in drbd_adm_down()
4576 if (!adm_ctx->reply_skb) in drbd_adm_del_resource()