media_set_bus_info(9)
π NAME π
okay so this whole page is about media_set_bus_info β it sets the bus_info field. that's the vibe, that's the whole job, she's a one-task icon β¨
this is the media_set_bus_info(9) page from the Kernel API Manual, btw π
β¨ SYNOPSIS β¨
void media_set_bus_info (char *bus_info , size_t bus_info_size , struct device *dev );
like, that's the whole signature bestie, no cap π₯
π«Ά ARGUMENTS π«Ά
bus_infoβ the variable where we write the bus info, and yes it's achararray πbus_info_sizeβ the length of thebus_info(so she knows how much room she's got, very considerate of her tbh)devβ the relatedstruct deviceπΈ
π¦ DESCRIPTION π¦
so what she does is set the bus information based on dev. currently this is done for PCI and platform devices β that's the range, that's her lane, iykyk π
dev is required to be non-NULL for this to happen. like, actually required. no device, no bus info, that's the deal π
β οΈ real talk though β this function is not meant to be called from drivers. so if you're out here writing a driver and thinking "ooh let me call this", no. not for you. she said not in this group chat π«Ά
π₯ SEE ALSO π₯
the kernel file ./include/media/media-device.h is where you wanna look, and then the whole friend group of related pages:
- struct
media_entity_notify(9) - struct
media_device_ops(9) - struct
media_device(9) media_device_init(9)media_device_cleanup(9)__media_device_register(9)media_device_register(9)media_device_unregister(9)media_device_register_entity(9)media_device_unregister_entity(9)media_device_register_entity_notify(9)media_device_unregister_entity_notify(9)media_device_pci_init(9)__media_device_usb_init(9)media_device_usb_init(9)
like yes it's a long list, but they all ate, so read them π
and that's the page!! π she lives in ./include/media and the date on this one is October 2026, so like future-coded of her ngl β mwah, go read the source bestie, ily, 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