fdt_setprop_u32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ fdt_setprop_u32(9) β€” Kernel API Manual πŸ¦‹

okay bestie, this is the Kernel API Manual page for fdt_setprop_u32(9), and it is literally here to set a property to a 32-bit integer. slay.


🌸 NAME 🌸

fdt_setprop_u32 β€” set a property to a 32-bit integer. that’s the whole vibe πŸ’…


✨ SYNOPSIS ✨

int fdt_setprop_u32 (void *fdt , int nodeoffset , const char *name ,
       uint32_t val );

πŸŽ€ ARGUMENTS πŸŽ€

  • fdt β€” pointer to the device tree blob 🫢
  • nodeoffset β€” offset of the node whose property to change
  • name β€” name of the property to change
  • val β€” 32-bit integer value for the property (native endian)

πŸ’– DESCRIPTION πŸ’–

okay so fdt_setprop_u32 sets the value of the named property in the given node to the given 32-bit integer value β€” converting to big-endian if necessary β€” or it creates a new property with that value if it does not already exist. iconic behavior, no cap ✨

⚠️ heads up bestie: this function may insert or delete data from the blob, and will therefore change the offsets of some existing nodes. so like… don’t get too attached to your old offsets, fr fr 😭

πŸ”₯ RETURN πŸ”₯

  • 0 β€” on success πŸŽ‰
  • -FDT_ERR_NOSPACE β€” there is insufficient free space in the blob to contain the new property value
  • -FDT_ERR_BADOFFSET β€” nodeoffset did not point to FDT_BEGIN_NODE tag
  • -FDT_ERR_BADLAYOUT, -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_BADLAYOUT, -FDT_ERR_TRUNCATED β€” standard meanings

🌈 SEE ALSO 🌈

the whole friend group is here, and yes, every single ref made it into the group chat πŸ’œ


okay that’s the whole page, bestie 🫢 source/version: ./scripts/dtc/libfdt, date: October 2026, and it’s still fdt_setprop_u32(9) β€” go be the main character of your devicetree πŸ’…βœ¨

πŸ“¦ where this page comes from