of_remove_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_remove_property(9) πŸ’…

okay bestie, this page is from the Kernel API Manual, and it's short but it has a little plot twist. We're removing a property from a node β€” except, spoiler, not literally removing it. πŸ™ˆ

πŸŽ€ NAME πŸŽ€

of_remove_property β€” Remove a property from a node.

✨ SYNOPSIS ✨

int of_remove_property (struct device_node *np , struct property *prop
       );

🫢 ARGUMENTS 🫢

  • np β€” Caller's Device Node.
  • prop β€” Property to remove.

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea: we don't actually remove it, because we've given out who-knows-how-many pointers to the data using get-property. 😭 Instead, we just move the property to the "dead properties" list, so it won't be found any more. It's giving "not gone, just off the grid" energy. πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./drivers/of/base.c β€” plus the whole squad:


mwah πŸ’‹ β€” source/version: ./drivers/of; date: October 2026. periodt. 🫢

πŸ“¦ where this page comes from