of_property_count_u16_elems(9)
π NAME π
okay bestie, this is the of_property_count_u16_elems(9) page from the Kernel API Manual, and the function of_property_count_u16_elems is literally here to count the number of u16 elements in a property. iconic behavior, no notes π
β¨
β¨ SYNOPSIS β¨
int of_property_count_u16_elems (const struct device_node *np , const char *propname );
periodt, that's the whole signature π«Ά
π¦ ARGUMENTS π¦
npβ the device node from which the property value is to be read. like, which node are we reading from? that one πpropnameβ the name of the property to be searched. the property's lil name tag π·οΈ
πΈ DESCRIPTION πΈ
Search for a property in a device node and count the number of u16 elements in it. that's the vibe check, and it passes β
π RETURN π
- the number of elements on success β slay π₯
-EINVALif the property does not exist or its length does not match a multiple ofu16β not the right shape, bestie π-ENODATAif the property does not have a value β empty vibes π
π SEE ALSO π
Kernel file: ./include/linux/of.h β the source with the receipts πβ¨ and then the whole friend group:
of_node_init(9)of_machine_is_compatible(9)of_parse_phandle(9)of_parse_phandle_with_args(9)of_parse_phandle_with_fixed_args(9)of_parse_phandle_with_optional_args(9)of_phandle_args_equal(9)of_property_count_u8_elems(9)of_property_count_u32_elems(9)of_property_count_u64_elems(9)of_property_read_string_array(9)of_property_count_strings(9)of_property_read_string_index(9)of_property_present(9)of_property_read_u8_array(9)of_property_read_u16_array(9)of_property_read_u32_array(9)of_property_read_u64_array(9)struct of_changeset_entry(9)struct of_changeset(9)of_device_is_system_power_controller(9)of_have_populated_dt(9)
mwah π this page lives under ./include/linux, dated October 2026, and it's all about of_property_count_u16_elems(9) β byeee bestie! π«Άπ
π¦ 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