ufs_mtk_remove(9)
π ufs_mtk_remove(9) β the kernel API manual, but make it cute
okay so bestie, welcome to ufs_mtk_remove(9), a tiny little kernel function that has ONE job and honestly? she does it. this page lives in the Kernel API Manual and it's short enough to read while your build finishes, so let's go π«Ά
β¨ NAME β¨
ufs_mtk_remove β set driver_data of the device to NULL
that's it. that's the whole personality. she cleans up the driver_data pointer and sets it to NULL, and the way that's literally her entire name section is iconic honestly π
πΈ SYNOPSIS πΈ
void ufs_mtk_remove (struct platform_device *pdev );
look at her. no return value, one argument. main character energy with zero drama π₯
π ARGUMENTS π
pdevβ pointer to the platform device handle π¦ that's the thing you're handing over, the platform device handle itself, passed by pointer. give her the device, she'll handle the rest.
π DESCRIPTION π
so what does she actually do? she sets driver_data of the device to NULL. that's the gig. that's the whole gig.
and then β and this is the part that sends me π β the page says she always return 0. literally always. "Always return 0." no conditions, no "unless", no asterisk, no fine print. yes, the signature up in SYNOPSIS is void, and yes, the page still says "Always return 0" β I'm just the messenger, bestie, I'm not out here rewriting kernel semantics, that's above my pay grade π take it as written, no cap.
π¦ SEE ALSO π¦
- the kernel file
./drivers/ufs/host/ufs-mediatek.cβ that's where the source lives, go say hi π ufs_mtk_setup_clocks(9)ufs_mtk_init_clocks(9)ufs_mtk_init(9)ufs_mtk_clk_scale(9)ufs_mtk_probe(9)
the whole mediatek UFS host squad, all linked up, all worth a read β probe and remove are literally sisters, you gotta meet both π§
lowkey a reminder: this page is aboutufs_mtk_removeonly β everything it does is setdriver_dataof the device toNULL, and per the manual it "Always return 0". nothing extra, nothing invented, and honestly that's the vibe check she passed π
kisses bestie, that's the page π this little beauty comes from ./drivers/ufs/host and is dated October 2026 β go forth, remove devices, set that driver_data to NULL, and slay β¨ππ
π¦ 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