|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0 |
|
| #
e180ccb0 |
| 08-Apr-2024 |
Vladimir Kondratyev <[email protected]> |
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
(cherry picked from commit 3208d4ad2b8320a24af4a8293f7fd3ef9c35caa6)
show more ...
|
| #
9319e47c |
| 08-Apr-2024 |
Vladimir Kondratyev <[email protected]> |
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
(cherry picked from commit 1
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
(cherry picked from commit 19703887666da09c79c571bc78f0923bae62be91)
show more ...
|
| #
a87e584f |
| 13-May-2024 |
Bjoern A. Zeeb <[email protected]> |
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 Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D45181
(cherry picked from commit 8e4b8e9d807aa379d2a1c3aaac2537ba7d6bf0bf)
show more ...
|
| #
7a52baf2 |
| 02-Apr-2024 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: implement memzero_explicit()
Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44586
(cherry picked from commit 218b2ccf8cc90698
LinuxKPI: implement memzero_explicit()
Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44586
(cherry picked from commit 218b2ccf8cc90698487515c681f3e3453b0dcead)
show more ...
|
|
Revision tags: release/13.3.0 |
|
| #
7117d4b2 |
| 29-Jan-2024 |
Bjoern A. Zeeb <[email protected]> |
LinuxKPI: implement memset_after()
memset_after() is needed by iwlwifi d3.c.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43644
(cherry picked from commit 2d9d35837d8ea3
LinuxKPI: implement memset_after()
memset_after() is needed by iwlwifi d3.c.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43644
(cherry picked from commit 2d9d35837d8ea3ee7d7447d63a8755d45ec2fd96)
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
95ee2897 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
|
Revision tags: release/13.2.0 |
|
| #
b1a9e570 |
| 14-Feb-2023 |
Jean-Sébastien Pédron <[email protected]> |
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 <[email protected]> |
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 ...
|
|
Revision tags: release/12.4.0 |
|
| #
5d310ea8 |
| 14-Nov-2022 |
Bjoern A. Zeeb <[email protected]> |
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 <[email protected]> |
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 <[email protected]> |
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 <[email protected]> |
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
|
|
Revision tags: release/13.1.0 |
|
| #
307f78f3 |
| 19-Dec-2021 |
Vladimir Kondratyev <[email protected]> |
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
|
|
Revision tags: release/12.3.0 |
|
| #
a5e2a27d |
| 22-Oct-2021 |
Bjoern A. Zeeb <[email protected]> |
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 <[email protected]> |
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 ...
|
|
Revision tags: release/13.0.0, release/12.2.0 |
|
| #
34c2f79d |
| 14-Jul-2020 |
Vladimir Kondratyev <[email protected]> |
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 ...
|
|
Revision tags: release/11.4.0 |
|
| #
1a7ba9a0 |
| 20-Feb-2020 |
Emmanuel Vadot <[email protected]> |
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 ...
|
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0 |
|
| #
10ee3d30 |
| 16-Feb-2018 |
Hans Petter Selasky <[email protected]> |
Implement memdup_user_nul() in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Mellanox Technologies
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
0f32531a |
| 24-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Implement more string functions in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
| #
510ebed7 |
| 03-Mar-2016 |
Hans Petter Selasky <[email protected]> |
Add more functions to the LinuxKPI.
Define strnicmp as a function macro instead of a regular macro while at it.
MFC after: 1 week Sponsored by: Mellanox Technologies
|
| #
8d59ecb2 |
| 29-Oct-2015 |
Hans Petter Selasky <[email protected]> |
Finish process of moving the LinuxKPI module into the default kernel build.
- Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some M
Finish process of moving the LinuxKPI module into the default kernel build.
- Move all files related to the LinuxKPI into sys/compat/linuxkpi and its subfolders. - Update sys/conf/files and some Makefiles to use new file locations. - Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn adds the LinuxKPI to all LINT builds. - The LinuxKPI can be added to the kernel by setting the COMPAT_LINUXKPI option. The OFED kernel option no longer builds the LinuxKPI into the kernel. This was done to keep the build rules for the LinuxKPI in sys/conf/files simple. - Extend the LinuxKPI module to include support for USB by moving the Linux USB compat from usb.ko to linuxkpi.ko. - Bump the FreeBSD_version. - A universe kernel build has been done.
Reviewed by: np @ (cxgb and cxgbe related changes only) Sponsored by: Mellanox Technologies
show more ...
|