media_set_bus_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a char array πŸ’–
  • bus_info_size β€” the length of the bus_info (so she knows how much room she's got, very considerate of her tbh)
  • dev β€” the related struct 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:

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