media_device_usb_init(9)
π media_device_usb_init(9) π
okay so bestie, welcome to the Kernel API Manual entry for media_device_usb_init β yes the title and the manual name are both right there, we're not doing the "one on the left, one on the right" thing today, we're just vibing π¦
β¨ NAME β¨
media_device_usb_init β create and initialize a struct &media_device from a PCI device.
not me clocking that it says PCI while the function is literally named usb π that's what the page says though, so that's what we're reporting, no cap. iykyk.
πΈ SYNOPSIS πΈ
media_device_usb_init (mdev , udev , name );
π ARGUMENTS π
mdevβ pointer tostruct media_device. just a lil pointer, she's holding the whole media device together, main character energy fr.udevβ pointer tostruct usb_device. your actual USB device, the icon itself.nameβ media device name. and here's the cute part: if it'sNULL, the routine will use the usb product name, if available. so like, it'll introduce itself for you π«Ά (key words: if available β no promises if your device is shy).
π DESCRIPTION π
This macro calls media_device_usb_init passing the media_device_usb_init driver_name parameter filled with KBUILD_MODNAME.
like, yes, that's the whole bit. it hands over the driver name already pre-filled with KBUILD_MODNAME so you don't have to think about it. slay, honestly. β
π₯ SEE ALSO π₯
- Kernel file
./include/media/media-device.h 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_set_bus_info(9)
that's the whole friend group right there, go say hi π
π the sign-off π
and that's the page, bestie!! shoutout to the source, ./include/media, and to October 2026 for the date stamp, all wrapped up under the Kernel API Manual. periodt. π
β¨
go forth and initialize responsibly π§π
π¦ 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