X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Ffdtable.h;h=86a6a079a507026f3162d7322ba979bc232e93c3;hb=71c5729c47c806cda99a2afa8073fe699d8849d2;hp=b8b1a471d79626055f597128e52164404aacd4b8;hpb=d894b241ef50eca2f9a8f77334e692d816341c7f;p=lttng-modules.git diff --git a/wrapper/fdtable.h b/wrapper/fdtable.h index b8b1a471..86a6a079 100644 --- a/wrapper/fdtable.h +++ b/wrapper/fdtable.h @@ -11,6 +11,20 @@ #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)) int lttng_iterate_fd(struct files_struct *files,