property_entries_dup(9)
π 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):
property_entries_free(9)software_node_find_by_name(9)software_node_register_node_group(9)software_node_unregister_node_group(9)software_node_register(9)software_node_unregister(9)device_add_software_node(9)device_remove_software_node(9)device_create_managed_software_node(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms