X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=wrapper%2Ffdtable.h;h=d768c10f6251b860c0ad3866820f17259f62b6a2;hb=937d307ebcc31d767a7c68cd254b61eeea1dc92b;hp=b8b1a471d79626055f597128e52164404aacd4b8;hpb=2d0428212cbfa3f8428feee160b095f48c2ac974;p=lttng-modules.git diff --git a/wrapper/fdtable.h b/wrapper/fdtable.h index b8b1a471..d768c10f 100644 --- a/wrapper/fdtable.h +++ b/wrapper/fdtable.h @@ -10,6 +10,21 @@ #include #include +#include + +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) +static inline +struct file *lttng_lookup_fd_rcu(unsigned int fd) +{ + return lookup_fd_rcu(fd); +} +#else +static inline +struct file *lttng_lookup_fd_rcu(unsigned int fd) +{ + return fcheck(fd); +} +#endif #if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,7,0))