|
nckernel
0.1
|
POSIX 에 준하는 뮤텍스 API set 을 정의한다. More...
|
Data Structures | |
| struct | pthread_mutex |
| struct | pthread_mutexattr |
Macros | |
| #define | PTHREAD_MUTEX_INITIALIZER { 0, (void *)NULL } |
Typedefs | |
| typedef struct pthread_mutex | pthread_mutex_t |
| typedef struct pthread_mutexattr | pthread_mutexattr_t |
Functions | |
| int | pthread_mutex_destroy (pthread_mutex_t *mutex) |
| Mutex 를 소멸 시킨다. More... | |
| int | pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr) |
| Mutex 를 초기화 한다. More... | |
| int | pthread_mutex_lock (pthread_mutex_t *mutex) |
| 뮤텍스 락을 건다. More... | |
| int | pthread_mutex_trylock (pthread_mutex_t *mutex) |
| 뮤텍스 락을 시도한다. More... | |
| int | pthread_mutex_unlock (pthread_mutex_t *mutex) |
| 뮤텍스 락을 해제한다. More... | |
POSIX 에 준하는 뮤텍스 API set 을 정의한다.
| #define PTHREAD_MUTEX_INITIALIZER { 0, (void *)NULL } |
Definition at line 24 of file pthread_mutex.h.
| typedef struct pthread_mutex pthread_mutex_t |
Definition at line 21 of file pthread_mutex.h.
| typedef struct pthread_mutexattr pthread_mutexattr_t |
Definition at line 22 of file pthread_mutex.h.
| int pthread_mutex_destroy | ( | pthread_mutex_t * | mutex) |
Mutex 를 소멸 시킨다.
| [in] | mutex | 뮤텍스 객체 |
Definition at line 10 of file pthread_mutex.c.
References lock.
Referenced by destroy_fat_cache().

| int pthread_mutex_init | ( | pthread_mutex_t * | mutex, |
| const pthread_mutexattr_t * | attr | ||
| ) |
Mutex 를 초기화 한다.
| [out] | mutex | 뮤텍스 객체 |
| [in] | attr | 뮤텍스 속성 |
Definition at line 17 of file pthread_mutex.c.
References lock, NULL, owner, and refcnt.
Referenced by create_fat_cache().

| int pthread_mutex_lock | ( | pthread_mutex_t * | mutex) |
뮤텍스 락을 건다.
| [in] | mutex | 뮤텍스 객체 |
Definition at line 26 of file pthread_mutex.c.
References irq_local_restore(), irq_local_save(), lock, owner, pthread_equal(), pthread_self(), and refcnt.
Referenced by fat_cache_lock(), fdc_close(), fdc_ioctl(), fdc_lseek(), fdc_open(), fdc_read(), fdc_write(), page_frame_alloc(), page_frame_free(), page_frame_manage(), page_frame_ref(), and page_frame_refcnt().


| int pthread_mutex_trylock | ( | pthread_mutex_t * | mutex) |
뮤텍스 락을 시도한다.
| [in] | mutex | 뮤텍스 객체 |
Definition at line 56 of file pthread_mutex.c.
References irq_local_restore(), irq_local_save(), lock, owner, pthread_equal(), pthread_self(), and refcnt.

| int pthread_mutex_unlock | ( | pthread_mutex_t * | mutex) |
뮤텍스 락을 해제한다.
| [in] | mutex | 뮤텍스 객체 |
Definition at line 93 of file pthread_mutex.c.
References EINVAL, irq_local_restore(), irq_local_save(), lock, NULL, owner, pthread_equal(), pthread_self(), and refcnt.
Referenced by fat_cache_unlock(), fdc_close(), fdc_ioctl(), fdc_lseek(), fdc_open(), fdc_read(), fdc_write(), page_frame_alloc(), page_frame_free(), page_frame_manage(), page_frame_ref(), and page_frame_refcnt().


1.8.4