diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-01-31 23:16:06 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-02-03 18:39:30 +0000 |
| commit | 6ea242cc305b7ec5b44488c9f04d413ebbf0b731 (patch) | |
| tree | a3c62fa7adfe60409c29cfa5ae28e55b1d6376cd /sys/compat/linuxkpi/common/include/linux | |
| parent | cbb7441245cf2b22efed17dec3c88587c980c691 (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/string_choices.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/string_choices.h b/sys/compat/linuxkpi/common/include/linux/string_choices.h index 74aa3fd019b2..18842dbd86a2 100644 --- a/sys/compat/linuxkpi/common/include/linux/string_choices.h +++ b/sys/compat/linuxkpi/common/include/linux/string_choices.h @@ -68,4 +68,13 @@ str_enable_disable(bool value) #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 |
