Skip to content

Commit 35c593e

Browse files
damien-lemoalkeithbusch
authored andcommitted
nvmet: Add drvdata field to struct nvmet_ctrl
Allow a target driver to attach private data to a target controller by adding the new field drvdata to struct nvmet_ctrl. Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Rick Wertenbroek <[email protected]> Tested-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 1ee4531 commit 35c593e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/nvme/target/nvmet.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ struct nvmet_ctrl {
238238
struct nvmet_subsys *subsys;
239239
struct nvmet_sq **sqs;
240240

241+
void *drvdata;
242+
241243
bool reset_tbkas;
242244

243245
struct mutex lock;

0 commit comments

Comments
 (0)