Gendisk -
The final step is calling add_disk(struct gendisk *disk) . This function is critical; it makes the device visible to the rest of the kernel, populates /sys/block/ , and allows partitions to be scanned. 3.4 Removing the Disk
Major and minor numbers used to identify the device file in /dev . gendisk
"Can you fix the interface or not?"
The lifecycle of a block device involves several key steps that leverage the gendisk structure: 3.1 Allocation and Initialization The final step is calling add_disk(struct gendisk *disk)

