Date: Tue, 03 Feb 2026 18:40:30 +0000 From: Bjoern A. Zeeb <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6ea242cc305b - main - LinuxKPI: add str_read_write() Message-ID: <6982411e.3068a.36d37c7c@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6ea242cc305b7ec5b44488c9f04d413ebbf0b731 commit 6ea242cc305b7ec5b44488c9f04d413ebbf0b731 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2026-01-31 23:16:06 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2026-02-03 18:39:30 +0000 LinuxKPI: add str_read_write() Needed by a wireless driver. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D55029 --- sys/compat/linuxkpi/common/include/linux/string_choices.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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"; +} + #endifhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6982411e.3068a.36d37c7c>
