@@ -237,6 +237,7 @@ static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val)
237237}
238238
239239/**
240+ * @def atomic_cas
240241 * @brief Atomic compare-and-set.
241242 *
242243 * This routine performs an atomic compare-and-set on @a target. If the current
@@ -251,9 +252,9 @@ static inline void atomic_set_bit_to(atomic_t *target, int bit, bool val)
251252 * @param new_value New value to store.
252253 * @return true if @a new_value is written, false otherwise.
253254 */
254- bool atomic_cas (atomic_t * target , atomic_val_t old_value , atomic_val_t new_value );
255255
256256/**
257+ * @def atomic_ptr_cas
257258 * @brief Atomic compare-and-set with pointer values
258259 *
259260 * This routine performs an atomic compare-and-set on @a target. If the current
@@ -268,10 +269,10 @@ bool atomic_cas(atomic_t *target, atomic_val_t old_value, atomic_val_t new_value
268269 * @param new_value New value to store.
269270 * @return true if @a new_value is written, false otherwise.
270271 */
271- bool atomic_ptr_cas (atomic_ptr_t * target , atomic_ptr_val_t old_value ,
272- atomic_ptr_val_t new_value );
272+
273273
274274/**
275+ * @def atomic_add
275276 * @brief Atomic addition.
276277 *
277278 * This routine performs an atomic addition on @a target.
@@ -283,9 +284,8 @@ bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value,
283284 *
284285 * @return Previous value of @a target.
285286 */
286- atomic_val_t atomic_add (atomic_t * target , atomic_val_t value );
287287
288- /**
288+ /** @def atomic_sub
289289 * @brief Atomic subtraction.
290290 *
291291 * This routine performs an atomic subtraction on @a target.
@@ -297,9 +297,9 @@ atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
297297 *
298298 * @return Previous value of @a target.
299299 */
300- atomic_val_t atomic_sub (atomic_t * target , atomic_val_t value );
301300
302301/**
302+ * @def atomic_inc
303303 * @brief Atomic increment.
304304 *
305305 * This routine performs an atomic increment by 1 on @a target.
@@ -310,9 +310,9 @@ atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
310310 *
311311 * @return Previous value of @a target.
312312 */
313- atomic_val_t atomic_inc (atomic_t * target );
314313
315314/**
315+ * @def
316316 * @brief Atomic decrement.
317317 *
318318 * This routine performs an atomic decrement by 1 on @a target.
@@ -323,9 +323,9 @@ atomic_val_t atomic_inc(atomic_t *target);
323323 *
324324 * @return Previous value of @a target.
325325 */
326- atomic_val_t atomic_dec (atomic_t * target );
327326
328327/**
328+ * @def atomic_get
329329 * @brief Atomic get.
330330 *
331331 * This routine performs an atomic read on @a target.
@@ -336,9 +336,9 @@ atomic_val_t atomic_dec(atomic_t *target);
336336 *
337337 * @return Value of @a target.
338338 */
339- atomic_val_t atomic_get (const atomic_t * target );
340339
341340/**
341+ * @def atomic_ptr_get
342342 * @brief Atomic get a pointer value
343343 *
344344 * This routine performs an atomic read on @a target.
@@ -349,9 +349,9 @@ atomic_val_t atomic_get(const atomic_t *target);
349349 *
350350 * @return Value of @a target.
351351 */
352- atomic_ptr_val_t atomic_ptr_get (const atomic_ptr_t * target );
353352
354353/**
354+ * @def atomic_set
355355 * @brief Atomic get-and-set.
356356 *
357357 * This routine atomically sets @a target to @a value and returns
@@ -364,9 +364,9 @@ atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target);
364364 *
365365 * @return Previous value of @a target.
366366 */
367- atomic_val_t atomic_set (atomic_t * target , atomic_val_t value );
368367
369368/**
369+ * @def atomic_ptr_set
370370 * @brief Atomic get-and-set for pointer values
371371 *
372372 * This routine atomically sets @a target to @a value and returns
@@ -379,9 +379,9 @@ atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
379379 *
380380 * @return Previous value of @a target.
381381 */
382- atomic_ptr_val_t atomic_ptr_set (atomic_ptr_t * target , atomic_ptr_val_t value );
383382
384383/**
384+ * @def atomic_clear
385385 * @brief Atomic clear.
386386 *
387387 * This routine atomically sets @a target to zero and returns its previous
@@ -393,9 +393,9 @@ atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value);
393393 *
394394 * @return Previous value of @a target.
395395 */
396- atomic_val_t atomic_clear (atomic_t * target );
397396
398397/**
398+ * @def atomic_ptr_clear
399399 * @brief Atomic clear of a pointer value
400400 *
401401 * This routine atomically sets @a target to zero and returns its previous
@@ -407,9 +407,9 @@ atomic_val_t atomic_clear(atomic_t *target);
407407 *
408408 * @return Previous value of @a target.
409409 */
410- atomic_ptr_val_t atomic_ptr_clear (atomic_ptr_t * target );
411410
412411/**
412+ * @def atomic_or
413413 * @brief Atomic bitwise inclusive OR.
414414 *
415415 * This routine atomically sets @a target to the bitwise inclusive OR of
@@ -422,9 +422,9 @@ atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target);
422422 *
423423 * @return Previous value of @a target.
424424 */
425- atomic_val_t atomic_or (atomic_t * target , atomic_val_t value );
426425
427426/**
427+ * @def atomic_xor
428428 * @brief Atomic bitwise exclusive OR (XOR).
429429 *
430430 * @note @atomic_api
@@ -437,9 +437,9 @@ atomic_val_t atomic_or(atomic_t *target, atomic_val_t value);
437437 *
438438 * @return Previous value of @a target.
439439 */
440- atomic_val_t atomic_xor (atomic_t * target , atomic_val_t value );
441440
442441/**
442+ * @def atomic_and
443443 * @brief Atomic bitwise AND.
444444 *
445445 * This routine atomically sets @a target to the bitwise AND of @a target
@@ -452,9 +452,9 @@ atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value);
452452 *
453453 * @return Previous value of @a target.
454454 */
455- atomic_val_t atomic_and (atomic_t * target , atomic_val_t value );
456455
457456/**
457+ * @def atomic_nand
458458 * @brief Atomic bitwise NAND.
459459 *
460460 * This routine atomically sets @a target to the bitwise NAND of @a target
@@ -467,8 +467,6 @@ atomic_val_t atomic_and(atomic_t *target, atomic_val_t value);
467467 *
468468 * @return Previous value of @a target.
469469 */
470- atomic_val_t atomic_nand (atomic_t * target , atomic_val_t value );
471-
472470/**
473471 * @}
474472 */
0 commit comments