STRUCT SUPPLIER_BINDINGS(9)
π NAME π
okay so welcome to struct supplier_bindings(9), bestie β that's the page title, and it lives in the Kernel API Manual β¨. This struct is literally struct supplier_bindings β property parsing functions for suppliers π«Ά.
β¨ SYNOPSIS β¨
struct supplier_bindings {
struct device_node *(*parse_prop)(struct device_node *np, const char
*prop_name, int index);
struct device_node *(*get_con_dev)(struct device_node *np);
bool optional;
u8 fwlink_flags;
};
π«Ά Members π«Ά
parse_propβ the function nameparse_propfinds the node corresponding to a supplier phandle π₯. Its little sub-fields are:parse_prop.np: pointer to the device node holding the supplier phandle property.parse_prop.prop_name: name of the property holding a phandle value.parse_prop.index: for properties holding a list of phandles, this is the index into the list.
get_con_devβ if the consumer node containing the property is never converted to astruct device, implement this ops sofw_devlinkcan use it to find the true consumer π.optionalβ describes whether a supplier is mandatory or not.fwlink_flagsβ optional fwnode link flags to use when creating a fwnode link for this property.
πΈ Return πΈ
parse_prop return values are:
- phandle node pointer with refcount incremented. Caller must
of_node_puton it when done. NULLif no phandle found at index.
π¦ SEE ALSO π¦
Kernel file ./drivers/of/property.c β and the whole function crew is here, no cap:
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_u32_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)of_link_property(9)
mwah π this page is from ./drivers/of, dated October 2026, and it's serving struct supplier_bindings(9) π.
π¦ 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