DENX . Training2 . LddMutex

5.7.4.2. Mutexes

API: Kernel Mutexes

initalize:

DEFINE_MUTEX(name);

at runtime:

mutex_init(struct mutex *lock);

locking:

void mutex_lock(struct mutex *lock);
int mutex_lock_interruptible(struct mutex *lock);
int mutex_trylock(struct mutex *lock);

unlocking:

void mutex_unlock(struct mutex *lock);

testing state:

int mutex_is_locked(struct mutex *lock);

----- Revision r1.2 - 19 Feb 2008 - 14:46 - MarkusKlotzbuecher
Copyright © 2002-2020 by DENX Software Engineering