fdt_nop_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fdt_nop_property(9) β€” kernel API manual, but make it cute

okay bestie, so this is a page from the kernel API manual, section 9 β€” the one and only fdt_nop_property(9). she's a little libfdt girlie and she's here to help you ghost a property. 🫢


✨ NAME ✨

fdt_nop_property β€” replace a property with nop tags πŸ’€

like, we're not deleting deleting, we're just tagging it as "nope, nothing to see here" ✨


🌸 SYNOPSIS 🌸

int fdt_nop_property (void *fdt , int nodeoffset , const char *name );

three args, one int back, no cap. πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” pointer to the device tree blob. yes girl, the whole blob. this is your little tree of nodes and she's the main character.
  • nodeoffset β€” offset of the node whose property to nop. gotta know which node you're being shady about before you start nop-ing.
  • name β€” name of the property to nop. lowercase bestie, this is the exact property name you want to send to the shadow realm (well, the FDT_NOP realm 😭).

πŸ¦‹ DESCRIPTION πŸ¦‹

so what fdt_nop_property does is: it takes a given property's representation in the blob and replaces it with FDT_NOP tags β€” which effectively removes it from the tree. it's giving "gone but technically still there". iconic behaviour honestly. πŸ‘‘

and the way this is so polite β€” this function will alter only the bytes in the blob which contain the property. that's it. it will not alter or move any other part of the tree. no chaos, no collateral, no shifting your whole tree around like some kind of monster. just surgical little nop tags and peace out. πŸ’…


⭐ RETURN ⭐

  • 0 β€” on success πŸŽ‰ slay!
  • -FDT_ERR_NOTFOUND β€” node does not have the named property. she checked, it's not there, awkward. πŸ™ˆ
  • -FDT_ERR_BADOFFSET β€” nodeoffset did not point to FDT_BEGIN_NODE tag. wrong address bestie, that's not a node start. 😭
  • -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED β€” standard meanings πŸ’€ (yes, all of these, they're the usual suspects)

πŸ’œ SEE ALSO πŸ’œ

okay this is the long part, but every single one of these gets their shoutout, periodt. Kernel file ./scripts/dtc/libfdt/libfdt.h:

iykyk, that's the whole squad. no one left behind. 🫢


lowkey reminder bestie: this page lives in ./scripts/dtc/libfdt, and the version/date situation is October 2026 β€” so yeah, she's dated, but she ate. πŸ’–

that's the whole page, mwah, go nop some properties responsibly πŸ§šβœ¨πŸŽ€

πŸ“¦ where this page comes from