[問題] Linux Device Driver 函數與巨集

看板Linux作者 (林約翰)時間17年前 (2009/02/06 14:43), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
網路上可以找到不少C語言函數的資料,比如說: http://www.opengroup.org/onlinepubs/000095399/functions/printf.html 那麼,有沒有Linux Device Driver相關 函數/巨集 的線上資料庫呢? 比如說: void init_MUTEX (struct semaphore *sem); 哪裡可以查到它的細部資料? 還是都要自己去kernel source code裡面撈? #define init_MUTEX(sem) sema_init(sem, 1) static inline void sema_init(struct semaphore *sem, int val) { static struct lock_class_key __key; *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); } 撈到了還是看不太懂哩。 :~~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.221.140.178
文章代碼(AID): #19Yzl_2l (Linux)