Searched refs:adm_ctx (Results 1 – 3 of 3) sorted by relevance
159 static int drbd_adm_prepare(struct drbd_config_context *adm_ctx, in drbd_adm_prepare() argument166 memset(adm_ctx, 0, sizeof(*adm_ctx)); in drbd_adm_prepare()172 adm_ctx->reply_skb = genlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); in drbd_adm_prepare()173 if (!adm_ctx->reply_skb) { in drbd_adm_prepare()178 adm_ctx->reply_dh = genlmsg_put_reply(adm_ctx->reply_skb, in drbd_adm_prepare()182 if (!adm_ctx->reply_dh) { in drbd_adm_prepare()187 adm_ctx->reply_dh->minor = d_in->minor; in drbd_adm_prepare()188 adm_ctx->reply_dh->ret_code = NO_ERROR; in drbd_adm_prepare()190 adm_ctx->volume = VOLUME_UNSPECIFIED; in drbd_adm_prepare()200 err = nla_put_nohdr(adm_ctx->reply_skb, in drbd_adm_prepare()[all …]
2672 enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsigned int minor) in drbd_create_device() argument2674 struct drbd_resource *resource = adm_ctx->resource; in drbd_create_device()2680 int vnr = adm_ctx->volume; in drbd_create_device()
1428 extern enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsigned int mino…