comparison driver/critical.h @ 0:42f240cc4bc6

From: 太田 篤志 <atoc@namikilab.tuat.ac.jp>
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Sep 2009 13:44:18 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:42f240cc4bc6
1 /**
2 * critical.h
3 * SPE プロセスマネージャ spe_manager
4 * クリティカルセクションに関する変数や関数など
5 */
6
7 #ifndef SPE_MANAGER__CRITICAL_H
8 #define SPE_MANAGER__CRITICAL_H
9
10 #include <linux/semaphore.h>
11 #include <linux/spinlock.h>
12
13
14 // 外部から参照される関数
15 void initialize_critical(void);
16 struct semaphore *get_semaphore_for_spe_pid(void);
17 struct semaphore *get_semaphore_for_process_list(void);
18 spinlock_t *get_spinlock_for_process_list(void);
19
20
21 #endif /*SPE_MANAGER__CRITICAL_H*/