of_property_read_u32_index(9)
π NAME π
okay so this is of_property_read_u32_index(9) from the Kernel API Manual, and its whole job is to find and read a u32 from a multi-value property. that's it, that's the vibe. β¨
π¦ SYNOPSIS π¦
int of_property_read_u32_index (const struct device_node *np , const
char *propname , u32 index , u32 *out_value );
πΈ ARGUMENTS πΈ
npβ device node from which the property value is to be read.propnameβ name of the property to be searched.indexβ index of theu32in the list of values.out_valueβ pointer to return value, modified only if no error.
π DESCRIPTION π
picture this: you've got a device node, and you need the nth 32-bit value from one of its properties. this function searches for that property in the device node and reads the nth 32-bit value from it. π₯
the out_value is modified only if a valid u32 value can be decoded. so if it's giving invalid, your pointer stays untouched. no cap. π
β RETURN β
0on success π-EINVALif the property does not exist π-ENODATAif property does not have a value π-EOVERFLOWif the property data isn't large enough π
π SEE ALSO π
Kernel file: ./drivers/of/property.c β that's the spot. and here's the whole bestie list:
of_property_read_bool(9)of_graph_is_present(9)of_property_count_elems_of_size(9)of_find_property_value_of_size(9)of_property_read_u8_index(9)of_property_read_u16_index(9)of_property_read_u64_index(9)of_property_read_variable_u8_array(9)of_property_read_variable_u16_array(9)of_property_read_variable_u32_array(9)of_property_read_u64(9)of_property_read_variable_u64_array(9)of_property_read_string(9)of_property_match_string(9)of_property_read_string_helper(9)of_graph_parse_endpoint(9)of_graph_get_port_by_id(9)of_graph_get_next_port(9)of_graph_get_next_port_endpoint(9)of_graph_get_next_endpoint(9)of_graph_get_endpoint_by_regs(9)of_graph_get_remote_endpoint(9)of_graph_get_port_parent(9)of_graph_get_remote_port_parent(9)of_graph_get_remote_port(9)of_graph_get_endpoint_count(9)of_graph_get_port_count(9)of_graph_get_remote_node(9)parse_prop_cells(9)parse_suffix_prop_cells(9)struct supplier_bindings(9)of_link_property(9)
and that's the whole page, bestie π«Ά β source/version ./drivers/of, dated October 2026, for of_property_read_u32_index(9). bye π
π¦ 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