media_device_delete(9)
π NAME π
media_device_delete β Release media device. Calls kref_put().
okay so this is the Kernel API Manual page for media_device_delete(9), and itβs literally the cleanup girlie for a media device instance. slay.
β¨ SYNOPSIS β¨
void media_device_delete (struct media_device *mdev , const char
*module_name , struct module *owner );
π ARGUMENTS π
mdevβstruct media_devicepointer.module_nameβ should be filled withKBUILD_MODNAME.ownerβstruct modulepointer;THIS_MODULEfor the driver.THIS_MODULEis null for a built-in driver. It is safe even whenTHIS_MODULEis null.
πΈ DESCRIPTION πΈ
This interface should be called to put the Media Device Instance kref. Thatβs the whole vibe: you call it, and it does the kref_put() thing. No cap, thatβs the point.
π¦ SEE ALSO π¦
- Kernel file
./include/media/media-dev-allocator.h media_device_usb_allocate(9)
with love from ./include/media, October 2026 β media_device_delete(9) out πβ¨
π¦ 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