tb_property_add_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet tb_property_add_data from the Kernel API Manual ✨ β€” the little function whose whole job is adding an arbitrary data property to a directory. No cap, that's the name and the vibe. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int tb_property_add_data (struct tb_property_dir *parent , const char
       *key , const void *buf , size_t buflen );

🌸 ARGUMENTS 🌸

  • parent β€” the directory you're adding this property to πŸ’…
  • key β€” the key for the property, iykyk πŸ”‘
  • buf β€” the data buffer you're adding 🫢
  • buflen β€” number of bytes in the data buffer, literally the length πŸ“

✨ DESCRIPTION ✨

The function takes a copy of buf and adds it to the directory. That's the whole tea β˜• β€” copy, add, done. πŸ’–

πŸŽ€ RETURN πŸŽ€

  • 0 on success 🌈
  • negative errno otherwise 😭

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ β€” this one's signed off from ./drivers/thunderbolt, dated October 2026, and it's tb_property_add_data(9) all the way. πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from