property_entries_dup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ property_entries_dup β€” the kernel API manual, bestie edition πŸŽ€

okay so real talk, this one's from the Kernel API Manual (yes, property_entries_dup(9) β€” the (9) is giving kernel-internals realness πŸ’…). it's short, it's sweet, and it deep copies property arrays. let's get into it ✨


✨ NAME ✨

property_entries_dup β€” duplicate an array of properties 🫢

like, it makes a whole new copy. no sharing, no borrowing, no "i'll give it back i promise". a full duplicate, bestie.


🌸 SYNOPSIS 🌸

struct property_entry * property_entries_dup (const struct property_entry *properties );

that's the whole signature. look at her. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • properties β€” the array of properties to copy πŸ’– (this is the thing you're duplicating, so hand her over)

⭐ DESCRIPTION ⭐

so what this function does is it creates a deep copy of the given NULL-terminated array of property entries.

read that again: deep copy. not "here's a pointer to the same stuff" shallow nonsense β€” an actual deep copy, of a NULL-terminated array of property entries. the NULL-terminator part matters, that's how she knows where the array ends, iykyk 🌈

like yes it's one sentence in the original but it's a load-bearing one. deep copy. NULL-terminated. array of property entries. we love a function that knows exactly what it is πŸŽ€

ngl there's not much else on this page, so if you were waiting for a plot twist... there isn't one. she's a small function with a big job. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

the whole software-node friend group 🫢 (all from the kernel file ./drivers/base/swnode.c):

like, property_entries_free(9) is literally right there and honestly? you're gonna need her. dup and free, they're a matched set, don't leave her hanging 😭✨


🧚 cute little sign-off 🧚

lovingly sourced from ./drivers/base, dated October 2026, and stamped with the Kernel API Manual version tag at the bottom alongside property_entries_dup(9) because our girl deserves her name in the footer too πŸ’–

go forth, copy your properties, and remember to free them πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from