test_and_set_bit(9)

NAME

test_and_set_bit - Set a bit and return its old value

SYNOPSIS

int test_and_set_bit(int nr, volatile void * addr);

ARGUMENTS

nr
Bit to set
addr
Address to count from

DESCRIPTION

This operation is atomic and cannot be reordered. It also implies a
memory barrier.

COPYRIGHT

Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout