History log of /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/random.h (Results 1 – 14 of 14)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
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
# d5025c49 27-Aug-2024 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add get_random_u8()

Add a get_random_u8() implementation following the u36 and u64 versions.
We'll likely want to macro-ify them in the future and add all the types
which makes sense just

LinuxKPI: add get_random_u8()

Add a get_random_u8() implementation following the u36 and u64 versions.
We'll likely want to macro-ify them in the future and add all the types
which makes sense just to be done.

Sponsored by: The FreeBSD Foundation
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D46464

(cherry picked from commit f29e915bc0d216a87f222a208caeb2172c93e4ea)

show more ...


Revision tags: release/14.1.0
# 4242e224 08-Apr-2024 Vladimir Kondratyev <[email protected]>

LinuxKPI: Add get_random_u32_below function

get_random_u32_below returns a random integer in the interval [0, ceil),
with uniform distribution.

Sponsored by: Serenity CyberSecurity, LLC
Reviewed by

LinuxKPI: Add get_random_u32_below function

get_random_u32_below returns a random integer in the interval [0, ceil),
with uniform distribution.

Sponsored by: Serenity CyberSecurity, LLC
Reviewed by: emaste
MFC after: 1 week

(cherry picked from commit 9289c1f6f1514e714b17026c50ec09282f079cba)

show more ...


Revision tags: release/13.3.0
# c535e8ae 24-Dec-2023 Vladimir Kondratyev <[email protected]>

LinuxKPI: Add get_random_u64() function

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42816

(cherry picked f

LinuxKPI: Add get_random_u64() function

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42816

(cherry picked from commit 7f88d742e578c4cef4e26ce10b9a936e58237964)

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/


# 1dcd1a53 16-May-2023 Bjoern A. Zeeb <[email protected]>

LinuxKPI: implement get_random_u32_inclusive()

Implementation of get_random_u32_inclusive().
This is needed by an update for wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 10 day

LinuxKPI: implement get_random_u32_inclusive()

Implementation of get_random_u32_inclusive().
This is needed by an update for wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 10 days
Differential Revision: https://reviews.freebsd.org/D40121

show more ...


Revision tags: release/13.2.0, release/12.4.0, 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
# 10096cb6 24-May-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add prandom_u32() as used by wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30435


Revision tags: release/13.0.0
# 408c514f 09-Jan-2021 Neel Chauhan <[email protected]>

linuxkpi: Fix the "error: unknown type name 'u32'" compilation issue when
building the Intel QAT/QuickAssist driver.

Approved by: hselasky, kib
Differential Revision: https://reviews.freebsd.org/D2

linuxkpi: Fix the "error: unknown type name 'u32'" compilation issue when
building the Intel QAT/QuickAssist driver.

Approved by: hselasky, kib
Differential Revision: https://reviews.freebsd.org/D28055

show more ...


Revision tags: release/12.2.0, release/11.4.0
# af300929 23-May-2020 Emmanuel Vadot <[email protected]>

linuxkpi: Add prandom_u32_max

This is just a wrapper around arc4random_uniform
Needed by DRM v5.3

Sponsored-by: The FreeBSD Foundation
Reviewed by: cem, hselasky
Differential Revision: https://revi

linuxkpi: Add prandom_u32_max

This is just a wrapper around arc4random_uniform
Needed by DRM v5.3

Sponsored-by: The FreeBSD Foundation
Reviewed by: cem, hselasky
Differential Revision: https://reviews.freebsd.org/D24961

show more ...


Revision tags: release/12.1.0, release/11.3.0
# d109700c 15-May-2019 Johannes Lundberg <[email protected]>

LinuxKPI: Add get_random_u32 function.

This patch is part of D19565

Reviewed by: hps
Approved by: imp (mentor), hps
MFC after: 1 week


# a8a16c71 04-Apr-2019 Conrad Meyer <[email protected]>

Replace read_random(9) with more appropriate arc4rand(9) KPIs

Reviewed by: ae, delphij
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D19760


Revision tags: release/12.0.0, release/11.2.0
# bf4e2e5b 04-Oct-2017 Mark Johnston <[email protected]>

Add get_random_{int,long} to the LinuxKPI.

Fix some whitespace bugs while here.

Reviewed by: hselasky
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D12588


Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0
# d8571d3e 07-Jun-2016 Hans Petter Selasky <[email protected]>

Fallback to arc4rand() in the LinuxKPI when read_random() returns
zero. This can happen for virtual machines.

MFC after: 1 week
Sponsored by: Mellanox Technologies


Revision tags: release/10.3.0
# 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 ...