|
|
Log in / Subscribe / Register

Rethinking the futex API - why change the type that uaddr points to?

Rethinking the futex API - why change the type that uaddr points to?

Posted Jun 23, 2020 4:00 UTC (Tue) by pr1268 (guest, #24648)
Parent article: Rethinking the futex API

From the futex(2) man page:

    int futex(int *uaddr, [...]

And from the proposed patch set mentioned below:

    int futex_wait(void *uaddr, [...]
    int futex_wait_time32(void *uaddr, [...]
    int futex_wake(void *uaddr, [...]

Just curious, and I couldn't find in our editor's article, nor in the comments: why is uaddr being changed from an int * to a void *?


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds