funct(3rtapi)
funct(3rtapi) π
okay bestie, welcome to the RTAPI corner of the manual β this one's from section 3, and it's all about firmware wrappers. yes, firmware. slay. π
β¨ NAME β¨
rtapi_firmware.h β RTAPI wrappers for linux kernel functionality π§
πΈ SYNTAX πΈ
like, here's how you actually pull it in, no cap:
#include <rtapi_firmware.h>
struct rtapi_firmware;
int rtapi_request_firmware(const struct rtapi_firmware **fw,
const char *name, struct rtapi_device *device);
void rtapi_release_firmware(const struct rtapi_firmware *fw);
π DESCRIPTION π
so the whole vibe here is: in kernel space, every single rtapi_xxx or RTAPI_XXX identifier gets mapped onto the underlying kernel functionality β if it's available. periodt. β¨
and in userspace, or in kernels where the underlying functionality isn't provided by a kernel at all? generally you get another implementation instead β and lowkey it might come with reduced functionality. π like, for example, the userspace implementation for rtapi_device_register always succeeds. iconic behaviour honestly.
π₯ REALTIME CONSIDERATIONS π₯
typically, these functions may be called from realtime init/cleanup code. that's it, that's the tea. β
β RETURN VALUE β
as in Linux. fr fr. π«Ά
π SEE ALSO π
(no references listed here, bestie β that's the whole section) π
and that's a wrap! this page came to you from the LinuxCNC Documentation, dated 2014-06-28, living at funct(3rtapi). go forth and request some firmware, queen. ππ
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace-dev 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace-dev 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace-dev 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- Copyright (c) 2014 Jeff Epler
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms