driver_remove_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

driver_remove_file β€” remove sysfs file for driver. Okay so bestie, this is the driver_remove_file(9) page from the Kernel API Manual, and it's literally about removing a sysfs file for a driver πŸ’…βœ¨

✨ SYNOPSIS ✨

Here's the signature, copied exactly so nobody comes for me:

void driver_remove_file (const struct device_driver *drv , const struct driver_attribute *attr );

πŸŽ€ ARGUMENTS πŸŽ€

  • drv β€” driver. The driver in question, lowkey the main character here 🫢
  • attr β€” driver attribute descriptor. The descriptor for the driver attribute, like the little receipt for the sysfs file situation 🧚

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/base/driver.c β€” yes, that's the spot to peek at πŸ‘€

The whole friend group:


πŸ’œ xoxo, your Unix bestie β€” this page's source/version is ./drivers/base, and it's dated October 2026 πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from