disk_has_partscan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

disk_has_partscan β€” returns %true if partition scanning is enabled on a disk, bestie. That's the whole vibe. ✨

This is the Kernel API Manual page for disk_has_partscan(9), and yes, we're getting into it. 🫢


πŸŽ€ SYNOPSIS πŸŽ€

bool disk_has_partscan (struct gendisk *disk );

🌸 ARGUMENTS 🌸

  • disk β€” the disk you're checking, obviously. That's the argument. Go off. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns true if partitions scanning is enabled for disk, or false if partition scanning is disabled β€” either permanently or temporarily. No cap, that's the whole check. πŸ”₯

So if you're wondering "is partition scanning on for this disk?" this is the function giving you the answer. If it's off, it might be off forever, or just off for now. Either way: false. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Go peek at the Kernel file ./include/linux/blkdev.h, plus these iconic references:


That's the page, bestie. Sourced from ./include/linux, dated October 2026, and filed under disk_has_partscan(9) β€” periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from