funct(3rtapi)

πŸ’– funct(3rtapi) πŸ’–

okay bestie, welcome to the funct(3rtapi) manual page β€” it's giving RTAPI energy and we're gonna get you all the way together ✨


🌸 NAME 🌸

rtapi_device.h β€” RTAPI wrappers for linux kernel functionality


✨ SYNTAX ✨

so like, here's the whole vibe, no cap:

#include <rtapi_device.h>

struct rtapi_device;

int rtapi_dev_set_name(struct rtapi_device *dev, const char *name, ...);

int rtapi_device_register(struct rtapi_device *dev);

int rtapi_device_unregister(struct rtapi_device *dev);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk, here's what's tea πŸ“

In kernel space, each rtapi_xxx or RTAPI_XXX identifier is mapped to the underlying kernel functionality, if available. periodt.

In userspace, or in kernels where the underlying functionality is not provided by a kernel, generally another implementation β€” possibly with reduced functionality β€” is provided. (For example, the userspace implementation for rtapi_device_register always succeeds) and honestly? iconic of it πŸ’…


πŸ”₯ REALTIME CONSIDERATIONS πŸ”₯

Typically, these functions may be called from realtime init/cleanup code. so like, they're lowkey built different for that realtime moment, bestie 🌈


πŸ’œ RETURN VALUE πŸ’œ

As in Linux. fr fr 🫢


πŸŽ€ SEE ALSO πŸŽ€

no other pages listed here, bestie β€” it's giving empty 😭 but we still love her


made with love by LinuxCNC Documentation, dated 2014-06-28, and this has been funct(3rtapi) β€” stay slay, stay realtime, bye bestie πŸ’–βœ¨