bootflag_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bootflag_show(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so like, hi, welcome to the bootflag_show(9) page from the Kernel API Manual ✨ it's literally a tiny little sysfs show function and honestly it's giving "small but mighty" πŸ’– let's get into it.


🌸 NAME 🌸

bootflag_show β€” the get function for the sysfs attribute bootflag 🫢 lowkey does exactly what it says on the tin.


⭐ SYNOPSIS ⭐

ssize_t bootflag_show (struct device *dev , struct device_attribute
*attr , char *buf );

no cap, that's the whole signature πŸ’… notice it returns a ssize_t β€” that's how many bytes it wrote into the buffer, iykyk.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the struct device πŸ‘‘ this is the device structure itself, the main character of the call.
  • attr β€” device attributes πŸŽ€ aka the struct device_attribute that's being shown.
  • buf β€” buffer where data will be returned 🌸 like, this is where the output actually lands. it's a char * and yes you have to be nice to it.

🌈 SEE ALSO 🌈

the kernel file in question lives at:

  • ./drivers/net/wireless/marvell/libertas/mesh.c

and here's the whole squad of related pages, fr fr β€” every single one of them, no skipping πŸ’œ:


✨ bestie PSA: there's a matching bootflag_store(9) in that list too, so if you came here looking for the write side, that's your girl πŸ’…

and that's the page!! πŸŽ€ source/version is ./drivers/net/wireless/marvell... and the date is October 2026 β€” so like, it's from the future?? iconic of it honestly. ok bye, go read bootflag_store(9) next, mwah πŸ’–πŸ¦‹πŸŒ·

πŸ“¦ where this page comes from