Skip to content

Commit 9f6c532

Browse files
author
peterz@infradead.org
committed
futex: Add sys_futex_wake()
To complement sys_futex_waitv() add sys_futex_wake(). This syscall implements what was previously known as FUTEX_WAKE_BITSET except it uses 'unsigned long' for the bitmask and takes FUTEX2 flags. The 'unsigned long' allows FUTEX2_SIZE_U64 on 64bit platforms. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20230921105247.936205525@noisy.programming.kicks-ass.net
1 parent 698eb82 commit 9f6c532

File tree

22 files changed

+56
-2
lines changed

22 files changed

+56
-2
lines changed

‎arch/alpha/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,3 +492,4 @@
492492
560 common set_mempolicy_home_node sys_ni_syscall
493493
561 common cachestat sys_cachestat
494494
562 common fchmodat2 sys_fchmodat2
495+
563 common futex_wake sys_futex_wake

‎arch/arm/tools/syscall.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,4 @@
466466
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
467467
451 common cachestat sys_cachestat
468468
452 common fchmodat2 sys_fchmodat2
469+
454 common futex_wake sys_futex_wake

‎arch/arm64/include/asm/unistd.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
4040
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
4141

42-
#define __NR_compat_syscalls 453
42+
#define __NR_compat_syscalls 455
4343
#endif
4444

4545
#define __ARCH_WANT_SYS_CLONE

‎arch/arm64/include/asm/unistd32.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
911911
__SYSCALL(__NR_cachestat, sys_cachestat)
912912
#define __NR_fchmodat2 452
913913
__SYSCALL(__NR_fchmodat2, sys_fchmodat2)
914+
#define __NR_futex_wake 454
915+
__SYSCALL(__NR_futex_wake, sys_futex_wake)
914916

915917
/*
916918
* Please add new compat syscalls above this comment and update

‎arch/ia64/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,4 @@
373373
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
374374
451 common cachestat sys_cachestat
375375
452 common fchmodat2 sys_fchmodat2
376+
454 common futex_wake sys_futex_wake

‎arch/m68k/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,3 +452,4 @@
452452
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
453453
451 common cachestat sys_cachestat
454454
452 common fchmodat2 sys_fchmodat2
455+
454 common futex_wake sys_futex_wake

‎arch/microblaze/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,4 @@
458458
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
459459
451 common cachestat sys_cachestat
460460
452 common fchmodat2 sys_fchmodat2
461+
454 common futex_wake sys_futex_wake

‎arch/mips/kernel/syscalls/syscall_n32.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,4 @@
391391
450 n32 set_mempolicy_home_node sys_set_mempolicy_home_node
392392
451 n32 cachestat sys_cachestat
393393
452 n32 fchmodat2 sys_fchmodat2
394+
454 n32 futex_wake sys_futex_wake

‎arch/mips/kernel/syscalls/syscall_n64.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,4 @@
367367
450 common set_mempolicy_home_node sys_set_mempolicy_home_node
368368
451 n64 cachestat sys_cachestat
369369
452 n64 fchmodat2 sys_fchmodat2
370+
454 n64 futex_wake sys_futex_wake

‎arch/mips/kernel/syscalls/syscall_o32.tbl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,4 @@
440440
450 o32 set_mempolicy_home_node sys_set_mempolicy_home_node
441441
451 o32 cachestat sys_cachestat
442442
452 o32 fchmodat2 sys_fchmodat2
443+
454 o32 futex_wake sys_futex_wake

0 commit comments

Comments
 (0)