device_add_disk(9)
π«Ά device_add_disk(9) β Kernel API Manual π«Ά
okay so bestie, welcome to the Kernel API Manual page for device_add_disk(9) β it's giving kernel-registration realness, and we're gonna read it together, no cap β¨
πΈ NAME πΈ
device_add_disk β add disk information to kernel list
π SYNOPSIS π
int device_add_disk (struct device *parent , struct gendisk *disk ,
const struct attribute_group **groups );
π¦ ARGUMENTS π¦
parentβ parent device for the disk πdiskβ per-device partitioning information π½groupsβ Additional per-device sysfs groups π
β¨ DESCRIPTION β¨
This function registers the partitioning information in disk with the kernel. that's the whole vibe, periodt π
π SEE ALSO π
- Kernel file
./block/genhd.c bdev_count_inflight(9)__register_blkdev(9)add_disk_fwnode(9)blk_mark_disk_dead(9)del_gendisk(9)invalidate_disk(9)disk_release(9)put_disk(9)set_disk_ro(9)
and that's the page, bestie π«Ά this cutie came from ./block, dated October 2026, and it's literally the device_add_disk(9) page β mwah πβ¨
π¦ 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