aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/string_helpers.h
Commit message (Collapse)AuthorAgeFilesLines
* linuxkpi: Move string_helpers.h to string_choices.hEd Maste3 days1-63/+4
| | | | | | | | | | | | Chace Linux change fca76071bab2 ("lib/string_helpers: Split out string_choices.h") from v6.5. Everything that we implemented from string_helpers.h has moved, so rename the file, update the include guards, and add a new dummy string_helpers.h that just #includes it. This matches Linux for the functionality that we have. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52606
* LinuxKPI: implement str_disable_enable()Bjoern A. Zeeb2025-08-291-0/+2
| | | | | | | | | | Implement str_disable_enable() needed by a wireless driver by using the already existing str_enable_disable() with a toggled argument. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D52081
* LinuxKPI: Add str_on_off and other helpers to linux/string_helpers.hVladimir Kondratyev2023-12-241-1/+28
| | | | | | | Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz, imp (previous version) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42794
* linuxkpi: Add <linux/string_helpers.h> and str_yes_no()Jean-Sébastien Pédron2023-12-131-0/+42
[Why] This header and str_yes_no() are now used by the i915 DRM driver in Linux 5.18. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43014