aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-04-20 09:57:16 +0900
committerJens Axboe <[email protected]>2022-05-04 05:24:58 -0600
commitb3a0a73e8a79eab6ec74139b505f4c6d6781aae9 (patch)
treeef830ed30e57e1d7e9117098f5e875670fe64171 /scripts/gdb/linux/utils.py
parent525323d25e8756f9c661f405208a7d333a1470c3 (diff)
block: null_blk: Cleanup device creation and deletion
Introduce the null_create_dev() and null_destroy_dev() helper functions to respectivel create nullb devices on modprobe and destroy them on rmmod. The null_destroy_dev() helper avoids duplicated code in the null_init() and null_exit() functions for deleting devices. Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions