glibc/include/sys
Adhemerval Zanella 78ed8bdf4f linux: Add PR_SET_VMA_ANON_NAME support
Linux 5.17 added support to naming anonymous virtual memory areas
through the prctl syscall.  The __set_vma_name is a wrapper to avoid
optimizing the prctl call if the kernel does not support it.

If the kernel does not support PR_SET_VMA_ANON_NAME, prctl returns
EINVAL. And it also returns the same error for an invalid argument.
Since it is an internal-only API, it assumes well-formatted input:
aligned START, with (START, START+LEN) being a valid memory range,
and NAME with a limit of 80 characters without an invalid one
("\\`$[]").
Reviewed-by: DJ Delorie <dj@redhat.com>
2023-11-07 10:27:20 -03:00
..
auxv.h
bitypes.h
cdefs.h
dir.h
epoll.h
errno.h
fcntl.h
file.h
gmon.h
gmon_out.h
ioctl.h
ipc.h
mman.h
msg.h
param.h
poll.h
prctl.h linux: Add PR_SET_VMA_ANON_NAME support 2023-11-07 10:27:20 -03:00
profil.h
queue.h
random.h
resource.h
select.h
sem.h
sendfile.h
shm.h
signal.h
single_threaded.h
socket.h
stat.h
statfs.h
statvfs.h
sysinfo.h
syslog.h misc/bits/syslog.h: Clearly separate declaration from definition 2023-07-05 16:59:48 +02:00
sysmacros.h
termios.h
time.h
timeb.h
times.h
ttychars.h
types.h
uio.h
un.h
unistd.h
utsname.h
vfs.h
vlimit.h
wait.h
xattr.h