fix: file: Rename fcheck lookup_fd_rcu (v5.11)
[lttng-modules.git] / include / wrapper / fdtable.h
index 996199a7b00093a4615362fc17f0fb1ea7241b70..559a1dcea073a034ee277e170db62a259c8b94d0 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.02314 seconds and 4 git commands to generate.