device_find_child_by_name(9)
π device_find_child_by_name(9) π
okay so this is from the Kernel API Manual, bestie β welcome to the kernel, it's giving β¨ chaos but make it cute β¨
πΈ NAME πΈ
device_find_child_by_name β device iterator for locating a child device. that's it, that's the whole gig π
β¨ SYNOPSIS β¨
struct device * device_find_child_by_name (struct device *parent , const
char *name );
look at that signature. gorgeous. no notes. π
π«Ά ARGUMENTS π«Ά
parentβ the parentstruct device. the main character whose kids we're snooping on πnameβ name of the child device. like, the actual name you're looking for, no cap π
π DESCRIPTION π
so this is similar to the device_find_child function above, but plot twist β it returns a reference to a device that has the name name. literally just vibes-matching by name. the way it does that is lowkey iconic π¦
π NOTE π
you will need to drop the reference with put_device after use. fr fr. don't leave it hanging or the kernel will be Big Mad π
π SEE ALSO π
Kernel file ./include/linux/device.h β and honestly? the whole friend group came:
struct subsys_interface(9)struct device_attribute(9)struct dev_ext_attribute(9)DEVICE_ATTR(9)DEVICE_ATTR_RW(9)DEVICE_ATTR_ADMIN_RW(9)DEVICE_ATTR_RW_NAMED(9)DEVICE_ATTR_RO(9)DEVICE_ATTR_ADMIN_RO(9)DEVICE_ATTR_RO_NAMED(9)DEVICE_ATTR_WO(9)DEVICE_ATTR_WO_NAMED(9)DEVICE_ULONG_ATTR(9)DEVICE_INT_ATTR(9)DEVICE_BOOL_ATTR(9)DEVICE_STRING_ATTR_RO(9)enum device_link_state(9)enum dl_dev_state(9)enum device_removable(9)struct dev_links_info(9)struct dev_msi_info(9)enum device_physical_location_panel(9)enum device_physical_location_vertical_position(9)enum device_physical_location_horizontal_position(9)struct device_physical_location(9)enum struct_device_flags(9)struct device(9)struct device_link(9)device_set_driver_override(9)device_has_driver_override(9)device_match_driver_override(9)device_iommu_mapped(9)dev_name(9)dev_bus_name(9)device_find_any_child(9)device_lock_set_class(9)device_lock_reset_class(9)
like, the entire extended family showed up to the group chat π π₯
so yeah, that's the whole page bestie β sourced from ./include/linux, dated October 2026, and this lil manpage is literally called device_find_child_by_name(9). slay, go find those children (devices) ππβ¨
π¦ 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