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