devm_rtc_device_register(9)
β¨ devm_rtc_device_register(9) β¨
okay bestie, welcome to the Kernel API Manual β this one is about devm_rtc_device_register, and yes itβs giving βmanaged deviceβ energy but also a lil deprecated, so buckle up π
πΈ NAME πΈ
devm_rtc_device_register β resource managed rtc_device_register()
π¦ SYNOPSIS π¦
struct rtc_device * devm_rtc_device_register (struct device *dev , const
char *name , const struct rtc_class_ops *ops , struct module *owner );
π ARGUMENTS π
devβ the device to register, like the main character here fr frnameβ the name of the device (unused) π yes bestie, itβs literally unusedopsβ the rtc operations structure, the whole vibe of how this thing behavesownerβ the module owner, gotta give credit where itβs due π
π«Ά DESCRIPTION π«Ά
return a struct rtc on success, or an ERR_PTR on error β no cap, thatβs the deal β¨
Managed rtc_device_register. The rtc_device returned from this function are automatically freed on driver detach. So like, it cleans up after itself, which is honestly iconic π
β οΈ bestie listen: This function is deprecated, usedevm_rtc_allocate_deviceandrtc_register_deviceinstead. like, please donβt make it awkward π
π₯ SEE ALSO π₯
- Kernel file
./drivers/rtc/class.cβ go read it, iykyk π
and thatβs the whole page, bestie π this gem comes from ./drivers/rtc, dated October 2026, and the page is literally devm_rtc_device_register(9) β slay, periodt πβ¨
π¦ 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