Thread (60 messages) 60 messages, 8 authors, 2024-10-28

Re: [PATCH v1 09/14] futex: Add sys_futex_requeue()

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2023-07-25 07:27:29
Also in: linux-arch, linux-mm, lkml

On Fri, Jul 21, 2023 at 1:11 PM Peter Zijlstra [off-list ref] wrote:
Finish of the 'simple' futex2 syscall group by adding
sys_futex_requeue(). Unlike sys_futex_{wait,wake}() it's arguments are
too numerous to fit into a regular syscall. As such, use struct
futex_waitv to pass the 'source' and 'destination' futexes to the
syscall.

This syscall implements what was previously known as FUTEX_CMP_REQUEUE
and uses {val, uaddr, flags} for source and {uaddr, flags} for
destination.

This design explicitly allows requeueing between different types of
futex by having a different flags word per uaddr.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
 arch/m68k/kernel/syscalls/syscall.tbl       |    1
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help