Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167135167
D57582.id180142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
439 B
Referenced Files
None
Subscribers
None
D57582.id180142.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/file.h b/sys/compat/linuxkpi/common/include/linux/file.h
--- a/sys/compat/linuxkpi/common/include/linux/file.h
+++ b/sys/compat/linuxkpi/common/include/linux/file.h
@@ -186,6 +186,12 @@
#define fd_file(fd) ((fd).linux_file)
+static inline bool
+fd_empty(struct fd fd)
+{
+ return (fd_file(fd) == NULL);
+}
+
#define file linux_file
#define fget(...) linux_fget(__VA_ARGS__)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 9:27 AM (6 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33966437
Default Alt Text
D57582.id180142.diff (439 B)
Attached To
Mode
D57582: linuxkpi: Add 'fd_empty()`
Attached
Detach File
Event Timeline
Log In to Comment