X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fwrapper%2Ffdtable.h;h=559a1dcea073a034ee277e170db62a259c8b94d0;hb=0aebcd682f2b7dc028e635297c504b39439551da;hp=996199a7b00093a4615362fc17f0fb1ea7241b70;hpb=5ef5f89155bc0c8dd4f8cfa12e9ba2f345fe7ef2;p=lttng-modules.git diff --git a/include/wrapper/fdtable.h b/include/wrapper/fdtable.h index 996199a7..559a1dce 100644 --- a/include/wrapper/fdtable.h +++ b/include/wrapper/fdtable.h @@ -11,6 +11,20 @@ #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)) int lttng_iterate_fd(struct files_struct *files,