| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "futex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-17" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "futex - fast user-space locking" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "SYNOPSIS" |
| 56 |
msgstr "" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, no-wrap |
| 62 |
msgid "B<#include E<lt>linux/futex.hE<gt>>\n" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "DESCRIPTION" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "" |
| 76 |
"The Linux kernel provides futexes (\"Fast user-space mutexes\") as a " |
| 77 |
"building block for fast user-space locking and semaphores. Futexes are very " |
| 78 |
"basic and lend themselves well for building higher-level locking " |
| 79 |
"abstractions such as mutexes, condition variables, read-write locks, " |
| 80 |
"barriers, and semaphores." |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
msgid "" |
| 87 |
"Most programmers will in fact not be using futexes directly but will instead " |
| 88 |
"rely on system libraries built on them, such as the Native POSIX Thread " |
| 89 |
"Library (NPTL) (see B<pthreads>(7))." |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
msgid "" |
| 96 |
"A futex is identified by a piece of memory which can be shared between " |
| 97 |
"processes or threads. In these different processes, the futex need not have " |
| 98 |
"identical addresses. In its bare form, a futex has semaphore semantics; it " |
| 99 |
"is a counter that can be incremented and decremented atomically; processes " |
| 100 |
"can wait for the value to become positive." |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"Futex operation occurs entirely in user space for the noncontended case. " |
| 108 |
"The kernel is involved only to arbitrate the contended case. As any sane " |
| 109 |
"design will strive for noncontention, futexes are also optimized for this " |
| 110 |
"situation." |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
msgid "" |
| 117 |
"In its bare form, a futex is an aligned integer which is touched only by " |
| 118 |
"atomic assembler instructions. This integer is four bytes long on all " |
| 119 |
"platforms. Processes can share this integer using B<mmap>(2), via shared " |
| 120 |
"memory segments, or because they share memory space, in which case the " |
| 121 |
"application is commonly called multithreaded." |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: SS |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "Semantics" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "" |
| 134 |
"Any futex operation starts in user space, but it may be necessary to " |
| 135 |
"communicate with the kernel using the B<futex>(2) or B<futex_waitv>(2) " |
| 136 |
"system calls." |
| 137 |
msgstr "" |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "" |
| 143 |
"To \"up\" a futex, execute the proper assembler instructions that will cause " |
| 144 |
"the host CPU to atomically increment the integer. Afterward, check if it " |
| 145 |
"has in fact changed from 0 to 1, in which case there were no waiters and the " |
| 146 |
"operation is done. This is the noncontended case which is fast and should " |
| 147 |
"be common." |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"In the contended case, the atomic increment changed the counter from -1 (or " |
| 155 |
"some other negative number). If this is detected, there are waiters. User " |
| 156 |
"space should now set the counter to 1 and instruct the kernel to wake up any " |
| 157 |
"waiters using the B<FUTEX_WAKE> operation." |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"Waiting on a futex, to \"down\" it, is the reverse operation. Atomically " |
| 165 |
"decrement the counter and check if it changed to 0, in which case the " |
| 166 |
"operation is done and the futex was uncontended. In all other " |
| 167 |
"circumstances, the process should set the counter to -1 and request that the " |
| 168 |
"kernel wait for another process to up the futex. This is done using the " |
| 169 |
"B<FUTEX_WAIT> operation." |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"The B<futex>(2) and B<futex_waitv>(2) system calls can optionally be " |
| 176 |
"passed a timeout specifying how long the kernel should wait for the futex to " |
| 177 |
"be upped. In this case, semantics are more complex and the programmer is " |
| 178 |
"referred to B<futex>(2) for more details. The same holds for asynchronous " |
| 179 |
"futex waiting." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: SH |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
#, no-wrap |
| 186 |
msgid "VERSIONS" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"Initial futex support was merged in Linux 2.5.7 but with different semantics " |
| 194 |
"from those described above. Current semantics are available from Linux " |
| 195 |
"2.5.40 onward." |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: SH |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "NOTES" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 207 |
#: opensuse-tumbleweed |
| 208 |
msgid "" |
| 209 |
"To reiterate, bare futexes are not intended as an easy-to-use abstraction " |
| 210 |
"for end users. Implementors are expected to be assembly-literate and to " |
| 211 |
"have read the sources of the futex user-space library referenced below." |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#. .SH AUTHORS |
| 215 |
#. .P |
| 216 |
#. Futexes were designed and worked on by Hubertus Franke |
| 217 |
#. (IBM Thomas J.\& Watson Research Center), |
| 218 |
#. Matthew Kirkwood, Ingo Molnar (Red Hat) and |
| 219 |
#. Rusty Russell (IBM Linux Technology Center). |
| 220 |
#. This page written by bert hubert. |
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 223 |
#: opensuse-tumbleweed |
| 224 |
msgid "" |
| 225 |
"This manual page illustrates the most common use of the B<futex>(2) " |
| 226 |
"primitives; it is by no means the only one." |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: SH |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "SEE ALSO" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
msgid "" |
| 239 |
"B<clone>(2), B<futex>(2), B<futex_waitv>(2), B<get_robust_list>(2), " |
| 240 |
"B<set_robust_list>(2), B<set_tid_address>(2), B<pthreads>(7)" |
| 241 |
msgstr "" |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 245 |
#: opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"I<Fuss, Futexes and Furwocks: Fast Userlevel Locking in Linux> (proceedings " |
| 248 |
"of the Ottawa Linux Symposium 2002), futex example library, futex-*.tar.bz2 " |
| 249 |
"E<.UR https:\\://mirrors.kernel.org\\:/pub\\:/linux\\:/kernel\\:/people\\:/" |
| 250 |
"rusty/> E<.UE .>" |
| 251 |
msgstr "" |
| 252 |
|
| 253 |
#. type: TH |
| 254 |
#: debian-trixie fedora-44 fedora-rawhide |
| 255 |
#, no-wrap |
| 256 |
msgid "2024-05-02" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: TH |
| 260 |
#: debian-trixie |
| 261 |
#, no-wrap |
| 262 |
msgid "Linux man-pages 6.9.1" |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 267 |
msgid "" |
| 268 |
"Any futex operation starts in user space, but it may be necessary to " |
| 269 |
"communicate with the kernel using the B<futex>(2) system call." |
| 270 |
msgstr "" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 274 |
msgid "" |
| 275 |
"The B<futex>(2) system call can optionally be passed a timeout specifying " |
| 276 |
"how long the kernel should wait for the futex to be upped. In this case, " |
| 277 |
"semantics are more complex and the programmer is referred to B<futex>(2) " |
| 278 |
"for more details. The same holds for asynchronous futex waiting." |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: debian-trixie fedora-44 fedora-rawhide |
| 283 |
msgid "" |
| 284 |
"To reiterate, bare futexes are not intended as an easy-to-use abstraction " |
| 285 |
"for end users. Implementors are expected to be assembly literate and to " |
| 286 |
"have read the sources of the futex user-space library referenced below." |
| 287 |
msgstr "" |
| 288 |
|
| 289 |
#. .SH AUTHORS |
| 290 |
#. .P |
| 291 |
#. Futexes were designed and worked on by Hubertus Franke |
| 292 |
#. (IBM Thomas J. Watson Research Center), |
| 293 |
#. Matthew Kirkwood, Ingo Molnar (Red Hat) and |
| 294 |
#. Rusty Russell (IBM Linux Technology Center). |
| 295 |
#. This page written by bert hubert. |
| 296 |
#. type: Plain text |
| 297 |
#: debian-trixie fedora-44 fedora-rawhide |
| 298 |
msgid "" |
| 299 |
"This man page illustrates the most common use of the B<futex>(2) " |
| 300 |
"primitives; it is by no means the only one." |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 305 |
msgid "" |
| 306 |
"B<clone>(2), B<futex>(2), B<get_robust_list>(2), B<set_robust_list>(2), " |
| 307 |
"B<set_tid_address>(2), B<pthreads>(7)" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: debian-trixie fedora-44 fedora-rawhide |
| 312 |
msgid "" |
| 313 |
"I<Fuss, Futexes and Furwocks: Fast Userlevel Locking in Linux> (proceedings " |
| 314 |
"of the Ottawa Linux Symposium 2002), futex example library, futex-*.tar.bz2 " |
| 315 |
"E<.UR https://mirrors.kernel.org\\:/pub\\:/linux\\:/kernel\\:/people\\:/" |
| 316 |
"rusty/> E<.UE .>" |
| 317 |
msgstr "" |
| 318 |
|
| 319 |
#. type: TH |
| 320 |
#: fedora-44 fedora-rawhide |
| 321 |
#, no-wrap |
| 322 |
msgid "Linux man-pages 6.13" |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: TH |
| 326 |
#: mageia-cauldron |
| 327 |
#, no-wrap |
| 328 |
msgid "2025-12-25" |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#. type: TH |
| 332 |
#: mageia-cauldron |
| 333 |
#, no-wrap |
| 334 |
msgid "Linux man-pages 6.17" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: TH |
| 338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
#, no-wrap |
| 340 |
msgid "Linux man-pages (unreleased)" |
| 341 |
msgstr "" |