Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109103770
D48757.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1011 B
Referenced Files
None
Subscribers
None
D48757.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -265,6 +265,7 @@
}
struct linux_file * linux67_get_file_rcu(struct linux_file **f);
+struct linux_file * get_file_active(struct linux_file **f);
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60700
#define get_file_rcu(f) linux67_get_file_rcu(f)
#else
diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/sys/compat/linuxkpi/common/src/linux_compat.c
@@ -1121,6 +1121,20 @@
}
}
+struct linux_file *
+get_file_active(struct linux_file **f)
+{
+ struct linux_file *file1;
+
+ rcu_read_lock();
+ file1 = __get_file_rcu(f);
+ rcu_read_unlock();
+ if (IS_ERR(file1))
+ file1 = NULL;
+
+ return (file1);
+}
+
static void
linux_file_kqfilter_detach(struct knote *kn)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 8:14 PM (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16390054
Default Alt Text
D48757.diff (1011 B)
Attached To
Mode
D48757: linuxkpi: Add `get_file_active()`
Attached
Detach File
Event Timeline
Log In to Comment