fdt_setprop_inplace_u64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fdt_setprop_inplace_u64 πŸ’…

okay bestie, so this page is from the Kernel API Manual and it's all about fdt_setprop_inplace_u64(9) β€” literally the glow-up your 64-bit integer property has been waiting for. no cap. πŸŽ€


✨ NAME ✨

fdt_setprop_inplace_u64 β€” change the value of a 64-bit integer property


πŸ¦‹ SYNOPSIS πŸ¦‹

int fdt_setprop_inplace_u64 (void *fdt , int nodeoffset , const char
*name , uint64_t val );

🌸 ARGUMENTS 🌸

  • fdt β€” pointer to the device tree blob. yes queen, the whole tree πŸ’–
  • nodeoffset β€” offset of the node whose property to change. like, which node are we touching
  • name β€” name of the property to change. the actual thing you're editing
  • val β€” 64-bit integer value to replace the property with. the new content, iconic ✨

πŸ’… DESCRIPTION πŸ’…

so fdt_setprop_inplace_u64 replaces the value of a given property with the 64-bit integer value in val, converting val to big-endian if necessary. she's inclusive like that 🫢

⚠️ and this is the important part, bestie: this function cannot change the size of a property. so it will only work if the property already exists and has length 8. it's giving "in-place only, no room to grow," iykyk 😭

also this function will alter only the bytes in the blob which contain the given property value, and will not alter or move any other part of the tree. respectful. considerate. she minds her own business πŸ’œ


πŸ”₯ RETURN πŸ”₯

  • 0 β€” on success, slay πŸ’€βœ¨
  • -FDT_ERR_NOSPACE β€” if the property's length is not equal to 8
  • -FDT_ERR_NOTFOUND β€” node does not have the named property
  • -FDT_ERR_BADOFFSET β€” nodeoffset did not point to FDT_BEGIN_NODE tag
  • -FDT_ERR_BADMAGIC, -FDT_ERR_BADVERSION, -FDT_ERR_BADSTATE, -FDT_ERR_BADSTRUCTURE, -FDT_ERR_TRUNCATED β€” standard meanings

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./scripts/dtc/libfdt/libfdt.h and honestly the whole friend group:


and that's the whole page, bestie 🧚 no notes, ate and left no crumbs ✨

this lil masterpiece lives in ./scripts/dtc/libfdt and it's dated October 2026 β€” so yeah, go forth and set those 64-bit props in place πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from