]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: Update internal copy of '<sys/rseq.h>'
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 1 Aug 2024 15:04:22 +0000 (11:04 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 10 Jan 2025 20:20:48 +0000 (20:20 +0000)
Sync the internal copy of '<sys/rseq.h>' with the latest Linux kernel
'include/uapi/linux/rseq.h'.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/sys/rseq.h

index 0a6cc0b54cd72854abc9f2875729a44361dbd97e..38fdb27b116593385453c03990e0499554ea315c 100644 (file)
@@ -152,6 +152,17 @@ struct rseq
            Inhibit instruction sequence block restart on migration for
            this thread.  */
     uint32_t flags;
+    /* Restartable sequences node_id field.  Updated by the kernel.  Read by
+       user-space with single-copy atomicity semantics.  This field should only
+       be read by the thread which registered this data structure.  Aligned on
+       32-bit.  Contains the current NUMA node ID. */
+    uint32_t node_id;
+    /* Restartable sequences mm_cid field.  Updated by the kernel.  Read by
+       user-space with single-copy atomicity semantics.  This field should only
+       be read by the thread which registered this data structure.  Aligned on
+       32-bit.  Contains the current thread's concurrency ID (allocated
+       uniquely within a memory map).  */
+    uint32_t mm_cid;
   } __attribute__ ((__aligned__ (32)));
 
 #endif /* __GLIBC_HAVE_KERNEL_RSEQ */