__devm_of_p...der_register(9)
πΈ NAME πΈ
okay bestie, meet __devm_of_p...der_register(9) from the Kernel API Manual β literally the one that will create/register phy provider with the framework π
β¨
β¨ SYNOPSIS β¨
struct phy_provider * __devm_of_phy_provider_register (struct device
*dev , struct device_node *children , struct module *owner , struct phy
* (*of_xlate)(struct device *dev, const struct of_phandle_args *args) );
π«Ά ARGUMENTS π«Ά
devβ thestruct deviceof the phy provider, aka the main character here πchildrenβ device node containing children (if different fromdev->of_node) π§ownerβ the module owner containingof_xlateπof_xlateβ function pointer to obtain phy instance from phy provider, no cap π₯
π DESCRIPTION π
So it literally creates struct phy_provider from dev and the of_xlate function pointer β¨ This is used in the case of dt boot for finding the phy instance from phy provider π¦
While at that, it also associates the device with the phy provider using devres β multitasking icon behavior, periodt π
On driver detach, release function is invoked on the devres data, then, devres data is freed. Cleanup slay π
π₯ SEE ALSO π₯
Kernel file ./drivers/phy/phy-core.c plus all these faves: phy_create_lookup(9), phy_remove_lookup(9), phy_init(9), phy_exit(9), phy_power_on(9), phy_power_off(9), phy_calibrate(9), phy_notify_connect(9), phy_notify_disconnect(9), phy_notify_state(9), phy_configure(9), phy_validate(9), _of_phy_get(9), of_phy_get(9), of_phy_put(9), phy_put(9), devm_phy_put(9), of_phy_simple_xlate(9), phy_get(9), devm_phy_get(9), devm_phy_optional_get(9), devm_of_phy_get(9), devm_of_phy_optional_get(9), devm_of_phy_get_by_index(9), phy_create(9), devm_phy_create(9), phy_destroy(9), devm_phy_destroy(9), __of_phy_provider_register(9), of_phy_provider_unregister(9), devm_of_phy_provider_unregister(9), phy_release(9) π
big kiss and bye bestie π«Ά this page lives in ./drivers/phy, dated October 2026, and itβs part of the Kernel API Manual β¨π
π¦ 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