| #
5e8b3eeb
|
| 04-Aug-2025 |
Ricardo Branco <rbranco@suse.de> |
kern: Allow O_CLOFORK to be passed to shm_open(2)
Signed-off-by: Ricardo Branco <rbranco@suse.de>
Reviewed by: kib Pull Request: https://github.com/freebsd/freebsd-src/pull/1802
|
| #
8269e767
|
| 14-Nov-2023 |
Brooks Davis <brooks@FreeBSD.org> |
libsys: relocate implementations and manpages
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths
libsys: relocate implementations and manpages
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home.
Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
show more ...
|
| #
fa9896e0
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
| #
5f03f96f
|
| 03-Feb-2023 |
Mark Johnston <markj@FreeBSD.org> |
shm: Document shm_create_largepage()
While here, move notes about FreeBSD-specific functionality to the COMPATIBILITY section, and document the ECAPMODE error for shm_open().
Reviewed by: pauamma,
shm: Document shm_create_largepage()
While here, move notes about FreeBSD-specific functionality to the COMPATIBILITY section, and document the ECAPMODE error for shm_open().
Reviewed by: pauamma, kib MFC after: 2 weeks Sponsored by: Klara, Inc. Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38282
show more ...
|
| #
8d3cd776
|
| 06-Oct-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
Fix mistakes in link(2) and shm_open(2)
PR: 258957 Submitted by: sigsys@gmail.com MFC after: 1 week
|
| #
e349cc19
|
| 25-Jun-2021 |
Michael Gmelin <grembo@FreeBSD.org> |
shm_open(2): Cross-reference posixshmcontrol(1)
When debugging POSIX shared memory issues, it's really useful to learn that there is a command line tool now to manipulate shared memory segments.
Re
shm_open(2): Cross-reference posixshmcontrol(1)
When debugging POSIX shared memory issues, it's really useful to learn that there is a command line tool now to manipulate shared memory segments.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D30896
show more ...
|
| #
9afb12ba
|
| 26-Sep-2019 |
David Bright <dab@FreeBSD.org> |
Add an shm_rename syscall
Add an atomic shm rename operation, similar in spirit to a file rename. Atomically unlink an shm from a source path and link it to a destination path. If an existing shm is
Add an shm_rename syscall
Add an atomic shm rename operation, similar in spirit to a file rename. Atomically unlink an shm from a source path and link it to a destination path. If an existing shm is linked at the destination path, unlink it as part of the same atomic operation. The caller needs the same permissions as shm_unlink to the shm being renamed, and the same permissions for the shm at the destination which is being unlinked, if it exists. If those fail, EACCES is returned, as with the other shm_* syscalls.
truss support is included; audit support will come later.
This commit includes only the implementation; the sysent-generated bits will come in a follow-on commit.
Submitted by: Matthew Bryan <matthew.bryan@isilon.com> Reviewed by: jilles (earlier revision) Reviewed by: brueffer (manpages, earlier revision) Relnotes: yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D21423
show more ...
|
| #
3e25d1fb
|
| 25-Sep-2019 |
Kyle Evans <kevans@FreeBSD.org> |
Add linux-compatible memfd_create
memfd_create is effectively a SHM_ANON shm_open(2) mapping with optional CLOEXEC and file sealing support. This is used by some mesa parts, some linux libs, and qem
Add linux-compatible memfd_create
memfd_create is effectively a SHM_ANON shm_open(2) mapping with optional CLOEXEC and file sealing support. This is used by some mesa parts, some linux libs, and qemu can also take advantage of it and uses the sealing to prevent resizing the region.
This reimplements shm_open in terms of shm_open2(2) at the same time.
shm_open(2) will be moved to COMPAT12 shortly.
Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D21393
show more ...
|
| #
7fd5cf05
|
| 20-Jan-2017 |
Warren Block <wblock@FreeBSD.org> |
Mention sendfile(2) by popular demand.
Submitted by: alc, kib MFC after: 1 week Sponsored by: iXsystems Differential Revision: https://reviews.freebsd.org/D9259
|
| #
b44047f3
|
| 13-Jan-2017 |
Warren Block <wblock@FreeBSD.org> |
Update the shm_open.2 man page to reflect objective reality.
PR: 215612 Submitted by: rwatson MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9066
|
| #
8fbf3d50
|
| 23-Jun-2014 |
Baptiste Daroussin <bapt@FreeBSD.org> |
use .Mt to mark up email addresses consistently (part4)
PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
|
| #
0f987f1f
|
| 18-Dec-2013 |
Ruslan Ermilov <ru@FreeBSD.org> |
shm_open(2): Fixed the history information.
While here, sort xrefs.
Reviewed by: jhb
|
| #
9f63b422
|
| 08-May-2012 |
Glen Barber <gjb@FreeBSD.org> |
General mdoc(7) and typo fixes.
PR: 167713 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
|
| #
41949a1e
|
| 25-Mar-2012 |
Joel Dahl <joel@FreeBSD.org> |
Remove superfluous paragraph macro.
|
| #
c2025a76
|
| 16-Aug-2010 |
Joel Dahl <joel@FreeBSD.org> |
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
| #
992a6ccc
|
| 29-Jan-2010 |
Robert Watson <rwatson@FreeBSD.org> |
You must include fcntl.h (in practice) to be able to do anything useful with shm_open(2), as otherwise the O_ flags are undefined.
MFC after: 3 days
|
| #
8e38aeff
|
| 08-Jan-2008 |
John Baldwin <jhb@FreeBSD.org> |
Add a new file descriptor type for IPC shared memory objects and use it to implement shm_open(2) and shm_unlink(2) in the kernel: - Each shared memory file descriptor is associated with a swap-backed
Add a new file descriptor type for IPC shared memory objects and use it to implement shm_open(2) and shm_unlink(2) in the kernel: - Each shared memory file descriptor is associated with a swap-backed vm object which provides the backing store. Each descriptor starts off with a size of zero, but the size can be altered via ftruncate(2). The shared memory file descriptors also support fstat(2). read(2), write(2), ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared memory file descriptors. - shm_open(2) and shm_unlink(2) are now implemented as system calls that manage shared memory file descriptors. The virtual namespace that maps pathnames to shared memory file descriptors is implemented as a hash table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash of the pathname. - As an extension, the constant 'SHM_ANON' may be specified in place of the path argument to shm_open(2). In this case, an unnamed shared memory file descriptor will be created similar to the IPC_PRIVATE key for shmget(2). Note that the shared memory object can still be shared among processes by sharing the file descriptor via fork(2) or sendmsg(2), but it is unnamed. This effectively serves to implement the getmemfd() idea bandied about the lists several times over the years. - The backing store for shared memory file descriptors are garbage collected when they are not referenced by any open file descriptors or the shm_open(2) virtual namespace.
Submitted by: dillon, peter (previous versions) Submitted by: rwatson (I based this on his version) Reviewed by: alc (suggested converting getmemfd() to shm_open())
show more ...
|
| #
24a0682c
|
| 20-Jan-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Sort sections.
|
| #
51f98e58
|
| 05-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Fix the NAME section making whatis(1) happy in particular.
|
| #
1a0a9345
|
| 02-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Mechanically kill hard sentence breaks.
|
| #
32eef9ae
|
| 01-Oct-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: Use the new .In macro for #include statements.
|
| #
86f47875
|
| 01-Aug-2001 |
Sheldon Hearn <sheldonh@FreeBSD.org> |
MFS: in HISTORY section, fix release number of first appearance
|
| #
3d751065
|
| 26-Feb-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
``.St -p1003.1b'' -> ``.St -p1003.1b-93''.
|
| #
563f6bde
|
| 20-Nov-2000 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: Nm -> Fn where appropriate.
|
| #
251c176f
|
| 17-Nov-2000 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: use certified section headers wherever possible.
|