Skip to contentSkip to conversation

docs-procfs-call-out-ioctl-based-procmap_query-command-existence.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: docs/procfs: call out ioctl()-based PROCMAP_QUERY command existence
has been removed from the -mm tree. Its filename was
docs-procfs-call-out-ioctl-based-procmap_query-command-existence.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Andrii Nakryiko <[email protected]>
Subject: docs/procfs: call out ioctl()-based PROCMAP_QUERY command existence
Date: Thu, 27 Jun 2024 10:08:56 -0700

Call out PROCMAP_QUERY ioctl() existence in the section describing /proc/PID/maps file in documentation. We refer user to UAPI header for low-level details of this programmatic interface.

Cc Alexey Dobriyan <[email protected]>
Cc Al Viro <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Mike Rapoport (IBM) <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Stephen Rothwell <[email protected]>

---

 Documentation/filesystems/proc.rst |    9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/filesystems/proc.rst renamed from Documentation/filesystems/proc.rst~docs-procfs-call-out-ioctl-based-procmap_query-command-existence +9 -0
@@ -443,6 +443,15 @@ is not associated with a file:
 
  or if empty, the mapping is anonymous.
 
+Starting with 6.11 kernel, /proc/PID/maps provides an alternative
+ioctl()-based API that gives ability to flexibly and efficiently query and
+filter individual VMAs. This interface is binary and is meant for more
+efficient and easy programmatic use. `struct procmap_query`, defined in
+linux/fs.h UAPI header, serves as an input/output argument to the
+`PROCMAP_QUERY` ioctl() command. See comments in linus/fs.h UAPI header for
+details on query semantics, supported flags, data returned, and general API
+usage information.
+
 The /proc/PID/smaps is an extension based on maps, showing the memory
 consumption for each of the process's mappings. For each mapping (aka Virtual
 Memory Area, or VMA) there is a series of lines such as the following::

_

Patches currently in -mm which might be from [email protected] are