Skip to content

Commit

Permalink
res: ucmd-mod: add sid_ucmd_ev_get_dev_partn
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Nov 13, 2024
1 parent 730c4c1 commit d13a699
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/resource/ucmd-mod.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ int sid_ucmd_ev_get_dev_major(struct sid_ucmd_ctx *ucmd_ctx);
int sid_ucmd_ev_get_dev_minor(struct sid_ucmd_ctx *ucmd_ctx);
const char *sid_ucmd_ev_get_dev_path(struct sid_ucmd_ctx *ucmd_ctx);
const char *sid_ucmd_ev_get_dev_name(struct sid_ucmd_ctx *ucmd_ctx);
uint64_t sid_ucmd_ev_get_dev_partn(struct sid_ucmd_ctx *ucmd_ctx);
uint64_t sid_ucmd_ev_get_dev_seqnum(struct sid_ucmd_ctx *ucmd_ctx);
uint64_t sid_ucmd_ev_get_dev_diskseq(struct sid_ucmd_ctx *ucmd_ctx);
const char *sid_ucmd_ev_get_dev_synth_uuid(struct sid_ucmd_ctx *ucmd_ctx);
Expand Down
5 changes: 5 additions & 0 deletions src/resource/ubr.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ udev_devtype_t sid_ucmd_ev_get_dev_type(struct sid_ucmd_ctx *ucmd_ctx)
return ucmd_ctx->req_env.dev.udev.type;
}

uint64_t sid_ucmd_ev_get_dev_partn(struct sid_ucmd_ctx *ucmd_ctx)
{
return ucmd_ctx->req_env.dev.udev.partn;
}

uint64_t sid_ucmd_ev_get_dev_seqnum(struct sid_ucmd_ctx *ucmd_ctx)
{
return ucmd_ctx->req_env.dev.udev.seqnum;
Expand Down

0 comments on commit d13a699

Please sign in to comment.