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.3 - 20 Mar 2008 - 17:52 - MarkusKlotzbuecher
Copyright © 2002-2019 by DENX Software Engineering