STRUCT SUPPLIER_BINDINGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 name parse_prop finds 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 a struct device, implement this ops so fw_devlink can 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_put on it when done.
  • NULL if no phandle found at index.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/of/property.c β€” and the whole function crew is here, no cap:


mwah πŸ’‹ this page is from ./drivers/of, dated October 2026, and it's serving struct supplier_bindings(9) 🌈.

πŸ“¦ where this page comes from