fix: file: Rename fcheck lookup_fd_rcu (v5.11)
[lttng-modules.git] / wrapper / fdtable.h
index 8f73559796a0655cdd36e770c674c60e23ba4a46..ccd57e0b0ec7c00b887d160d7ae613f2b9a11709 100644 (file)
 #include <linux/version.h>
 #include <linux/fdtable.h>
 
+#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,
This page took 0.02444 seconds and 4 git commands to generate.