X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=include%2Fwrapper%2Ffdtable.h;h=8f01a194a7b5131e152b342441b0d258924fa56f;hb=cf41b81e4a59a36acef130dcaf34defd901eb870;hp=996199a7b00093a4615362fc17f0fb1ea7241b70;hpb=117ab60f69a98dcbc365de8008ab93e6699d153a;p=lttng-modules.git diff --git a/include/wrapper/fdtable.h b/include/wrapper/fdtable.h index 996199a7..8f01a194 100644 --- a/include/wrapper/fdtable.h +++ b/include/wrapper/fdtable.h @@ -10,6 +10,21 @@ #include #include +#include + +#if (LINUX_VERSION_CODE >= 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 (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0))