Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144050524
D55029.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
471 B
Referenced Files
None
Subscribers
None
D55029.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/string_choices.h b/sys/compat/linuxkpi/common/include/linux/string_choices.h
--- a/sys/compat/linuxkpi/common/include/linux/string_choices.h
+++ b/sys/compat/linuxkpi/common/include/linux/string_choices.h
@@ -68,4 +68,13 @@
#define str_disable_enable(_v) str_enable_disable(!(_v))
+static inline const char *
+str_read_write(bool value)
+{
+ if (value)
+ return "read";
+ else
+ return "write";
+}
+
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 4, 10:48 PM (2 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28407915
Default Alt Text
D55029.diff (471 B)
Attached To
Mode
D55029: LinuxKPI: add str_read_write()
Attached
Detach File
Event Timeline
Log In to Comment