]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cuse(3): Allow shared memory allocations up to, but excluding 2 GBytes.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 13 Jul 2022 16:17:40 +0000 (18:17 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 27 Jul 2022 09:33:53 +0000 (11:33 +0200)
commita96a9c689ec8207bd0a19a19b1d9b8aa0aef7a1a
tree84dfadfe1af206a79b3b096997316cb757b8f147
parent412b95f77d9961babfc23b75190e60f86ff42225
cuse(3): Allow shared memory allocations up to, but excluding 2 GBytes.

Currently the cuse(3) mmap(2) offset is split into 128 banks of 16 Mbytes.
Allow cuse(3) to make allocations that span multiple banks at the expense
of any fragmentation issues that may arise. Typically mmap(2) buffers are
well below 16 Mbytes. This allows 8K video resolution to work using webcamd.

Reviewed by: markj @
Differential Revision: https://reviews.freebsd.org/D35830
Sponsored by: NVIDIA Networking

(cherry picked from commit d14b53ee31ca06933a4f8ef2e48ce33cf3dd5ec9)
lib/libcuse/cuse_lib.c
sys/fs/cuse/cuse.c
sys/fs/cuse/cuse_defs.h
sys/fs/cuse/cuse_ioctl.h