| #
039eac24
|
| 24-Feb-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `strim()`
This function trims whitespaces at the end of a string and returns a pointer to the first non-whitespace character.
Reviewed by: emaste Sponsored by: The FreeBSD Foundatio
linuxkpi: Add `strim()`
This function trims whitespaces at the end of a string and returns a pointer to the first non-whitespace character.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49374
show more ...
|
| #
8e4b8e9d
|
| 13-May-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add kvmemdup()
Add kvmemdup() as a variant of kmemdup(). While currently it could just call kmemdup() we duplicate the code and use kvmalloc() in case someone will change the implementati
LinuxKPI: add kvmemdup()
Add kvmemdup() as a variant of kmemdup(). While currently it could just call kmemdup() we duplicate the code and use kvmalloc() in case someone will change the implementation of kvmalloc/kvfree in slab.h. This is used by an updated wireless driver.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D45181
show more ...
|
| #
218b2ccf
|
| 02-Apr-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: implement memzero_explicit()
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44586
|
| #
3208d4ad
|
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week
show more ...
|
| #
19703887
|
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add strnchr function
strnchr() finds a character in a length limited string.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 month
|
| #
2d9d3583
|
| 29-Jan-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: implement memset_after()
memset_after() is needed by iwlwifi d3.c.
MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43644
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
b1a9e570
|
| 14-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `strscpy_pad()` to <linux/string.h>
It's the same as `strscpy()` except that it fills the rest of the destination buffer with zeroes if the source buffer is shorter.
Reviewed by: manu
linuxkpi: Add `strscpy_pad()` to <linux/string.h>
It's the same as `strscpy()` except that it fills the rest of the destination buffer with zeroes if the source buffer is shorter.
Reviewed by: manu Approved by: manu
show more ...
|
| #
d91cf060
|
| 10-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add <linux/stdarg.h> + include it from <linux/string.h>
The <stdarg.h> header was moved in Linux 5.15.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.o
linuxkpi: Add <linux/stdarg.h> + include it from <linux/string.h>
The <stdarg.h> header was moved in Linux 5.15.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38540
show more ...
|
| #
5d310ea8
|
| 14-Nov-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add memset_startat macro
Add a memset_startat() macro which sets a pattern from a struct member to the end of the struct. Needed by a wireless driver.
MFC after: 3 days Reviewed by: ema
LinuxKPI: add memset_startat macro
Add a memset_startat() macro which sets a pattern from a struct member to the end of the struct. Needed by a wireless driver.
MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37389
show more ...
|
| #
6a647ae5
|
| 31-Oct-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: string.h implement memcpy_and_pad()
Add a memcpy variant which takes length of source and destination buffers and a padding character in case there is free space in the destination. This
LinuxKPI: string.h implement memcpy_and_pad()
Add a memcpy variant which takes length of source and destination buffers and a padding character in case there is free space in the destination. This is used by a wireless driver.
MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37226
show more ...
|
| #
a11195df
|
| 20-Sep-2022 |
Jake Freeland <jfree@FreeBSD.org> |
linuxkpi: Add strndup_user
Reviewed by: hselasky, markj Differential Revision: https://reviews.freebsd.org/D36350 Sponsored by: Google, Inc. (GSoC 2022)
|
| #
fa1f02ba
|
| 26-Jul-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add some memset functions
Needed by drm-kmod
Obtained from: OpenBSD Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35943
|
| #
307f78f3
|
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
| #
a5e2a27d
|
| 22-Oct-2021 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add strreplace() to string.h
Add strreplace() needed by a driver. MFC after: 3 days
Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D32597
|
| #
019391bf
|
| 05-Jul-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Implement strscpy
strscpy copies the src string, or as much of it as fits, into the dst buffer. The dst buffer is always NUL terminated, unless it's zero-sized. strscpy returns the number
LinuxKPI: Implement strscpy
strscpy copies the src string, or as much of it as fits, into the dst buffer. The dst buffer is always NUL terminated, unless it's zero-sized. strscpy returns the number of characters copied (not including the trailing NUL) or -E2BIG if len is 0 or src was truncated.
Currently drm-kmod replaces strscpy with strncpy that is not quite correct as strncpy does not NUL-terminate truncated strings and returns different values on exit.
Reviewed by: hselasky, imp, manu MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D31005
show more ...
|
| #
e2c0e292
|
| 16-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
34c2f79d
|
| 14-Jul-2020 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup
That follows Linux and fixes related drm-kmod-5.3 panic.
Reviewed by: imp, hselasky MFC after: 1 week Differential Revision:
linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup
That follows Linux and fixes related drm-kmod-5.3 panic.
Reviewed by: imp, hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25657
show more ...
|
| #
6c140a72
|
| 20-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358131 through r358178.
|
| #
1a7ba9a0
|
| 20-Feb-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add str_has_prefix
This function test if the string str begins with the string pointed at by prefix.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd
linuxkpi: Add str_has_prefix
This function test if the string str begins with the string pointed at by prefix.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D23767
show more ...
|
| #
039eac24
|
| 24-Feb-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `strim()`
This function trims whitespaces at the end of a string and returns a pointer to the first non-whitespace character.
Reviewed by: emaste Sponsored by: The FreeBSD Foundatio
linuxkpi: Add `strim()`
This function trims whitespaces at the end of a string and returns a pointer to the first non-whitespace character.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49374
show more ...
|
| #
8e4b8e9d
|
| 13-May-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add kvmemdup()
Add kvmemdup() as a variant of kmemdup(). While currently it could just call kmemdup() we duplicate the code and use kvmalloc() in case someone will change the implementati
LinuxKPI: add kvmemdup()
Add kvmemdup() as a variant of kmemdup(). While currently it could just call kmemdup() we duplicate the code and use kvmalloc() in case someone will change the implementation of kvmalloc/kvfree in slab.h. This is used by an updated wireless driver.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D45181
show more ...
|
| #
218b2ccf
|
| 02-Apr-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: implement memzero_explicit()
Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44586
|
| #
3208d4ad
|
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste
LinuxKPI: Import vanilla linux/overflow.h
It is dual-licensed (GPLv2 & MIT) and self-contained header file. No need to reimplement it.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week
show more ...
|
| #
19703887
|
| 08-Apr-2024 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add strnchr function
strnchr() finds a character in a length limited string.
Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 month
|