fs_bdev_file_release(9)
π fs_bdev_file_release(9) β your fave Kernel API Manual entry π
okay so this is fs_bdev_file_release(9) from the Kernel API Manual, and it's literally the bestie move for a block device that got claimed for a superblock. no cap, the whole vibe is: unregister the entry, then close the device. π
π NAME π
fs_bdev_file_release - release a block device claimed for a superblock
β¨ SYNOPSIS β¨
void fs_bdev_file_release (struct file *bdev_file , struct super_block
*sb );
π«Ά ARGUMENTS π«Ά
bdev_fileβ the file returned byfs_bdev_file_open_by_{dev,path}(); yes, that exact brace-y bestie. π¦sbβ the superblock the device was claimed for. iconic claim energy, fr. π
πΈ DESCRIPTION πΈ
Unregister the {dev, sb} entry, then close the block device. that's it β unregister then close, in that order, periodt. π
β¨
π¦ SEE ALSO π¦
Kernel file ./fs/super.c β plus all these linked icons, fr fr:
super_lock(9)alloc_super(9)deactivate_locked_super(9)deactivate_super(9)grab_super(9)retire_super(9)generic_shutdown_super(9)sget_fc(9)iterate_supers_type(9)reconfigure_super(9)emergency_thaw_all(9)get_anon_bdev(9)sget_dev(9)fs_bdev_freeze(9)fs_bdev_thaw(9)fs_bdev_file_open_by_dev(9)fs_bdev_file_open_by_path(9)fs_bdev_unregister(9)get_tree_bdev_flags(9)get_tree_bdev(9)vfs_get_tree(9)sb_wait_write(9)freeze_super(9)thaw_super(9)
mwah π β thanks for coming to my Kernel API Manual TED talk β source/version: ./fs; date: October 2026; page title: fs_bdev_file_release(9) π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms