capability_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… capability_store(9) β€” like, the whole vibe

okay so bestie, we're in the Kernel API Manual today (yes, that Kernel API Manual πŸ‘‘) and the star of the show is capability_store. She's a store function for the sysfs attribute capability, and honestly? she ate. Let's get into it. πŸŽ€


✨ NAME ✨

capability_store β€” the set function for the sysfs attribute capability. that's it, that's her whole job description πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

ssize_t capability_store (struct device *dev , struct device_attribute
*attr , const char *buf , size_t count );

look at that signature. gorgeous. iconic. no notes. πŸ”₯


🌸 ARGUMENTS 🌸

  • dev β€” the struct device. the main character of the argument list, as always 🫢
  • attr β€” device attributes. yes plural, yes she contains multitudes ✨
  • buf β€” the buffer that contains the new attribute value. this is where the actual tea lives πŸ“
  • count β€” size of buffer. so she knows how much of buf is, like, real πŸ‘‘

🌈 SEE ALSO 🌈

first up, the kernel file herself:

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

and now the whole friend group, no one left out, fr fr πŸ’–:

like… a whole mesh squad. the way they all showed up to the function list together πŸ˜­πŸ’œ


ngl bestie, everything above is literally the whole page β€” no hidden extra options, no secret defaults, no environment variables lurking. what you see is what you get, and what you get is correct. πŸ’€βœ¨

kiss kiss, this page came from the Kernel API Manual and is dated October 2026 β€” take care of her, she's under ./drivers/net/wireless/marvell/... and she's doing her best πŸ§šπŸ’–

πŸ“¦ where this page comes from