Changeset e71a61d in mainline
- Timestamp:
- 2007-01-22T14:45:07Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 51baa8a
- Parents:
- 726e1043
- Location:
- kernel
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/fb/fb.h
r726e1043 re71a61d 36 36 #define KERN_FB_H_ 37 37 38 #include <typedefs.h>39 38 #include <arch/types.h> 39 #include <synch/spinlock.h> 40 40 41 41 extern spinlock_t fb_lock; -
kernel/genarch/include/mm/page_ht.h
r726e1043 re71a61d 41 41 42 42 #include <mm/page.h> 43 #include < typedefs.h>43 #include <synch/mutex.h> 44 44 #include <arch/types.h> 45 45 #include <adt/list.h> -
kernel/generic/include/mm/asid.h
r726e1043 re71a61d 44 44 45 45 #include <arch/mm/asid.h> 46 #include <synch/spinlock.h> 46 47 #include <typedefs.h> 47 48 -
kernel/generic/include/synch/condvar.h
r726e1043 re71a61d 38 38 #include <arch/types.h> 39 39 #include <synch/waitq.h> 40 #include < typedefs.h>40 #include <synch/mutex.h> 41 41 #include <synch/synch.h> 42 42 43 struct condvar{43 typedef struct { 44 44 waitq_t wq; 45 } ;45 } condvar_t; 46 46 47 47 #define condvar_wait(cv,mtx) \ -
kernel/generic/include/synch/futex.h
r726e1043 re71a61d 43 43 44 44 /** Kernel-side futex structure. */ 45 struct futex{45 typedef struct { 46 46 uintptr_t paddr; /**< Physical address of the status variable. */ 47 47 waitq_t wq; /**< Wait queue for threads waiting for futex availability. */ 48 48 link_t ht_link; /**< Futex hash table link. */ 49 49 count_t refcount; /**< Number of tasks that reference this futex. */ 50 } ;50 } futex_t; 51 51 52 52 extern void futex_init(void); -
kernel/generic/include/synch/mutex.h
r726e1043 re71a61d 41 41 #include <synch/synch.h> 42 42 43 struct mutex{43 typedef struct { 44 44 semaphore_t sem; 45 } ;45 } mutex_t; 46 46 47 47 #define mutex_lock(mtx) \ -
kernel/generic/include/synch/rwlock.h
r726e1043 re71a61d 42 42 #include <synch/spinlock.h> 43 43 44 enum rwlock_type{44 typedef enum { 45 45 RWLOCK_NONE, 46 46 RWLOCK_READER, 47 47 RWLOCK_WRITER 48 } ;48 } rwlock_type_t; 49 49 50 struct rwlock{50 typedef struct { 51 51 SPINLOCK_DECLARE(lock); 52 52 mutex_t exclusive; /**< Mutex for writers, readers can bypass it if readers_in is positive. */ 53 53 count_t readers_in; /**< Number of readers in critical section. */ 54 } ;54 } rwlock_t; 55 55 56 56 #define rwlock_write_lock(rwl) \ -
kernel/generic/include/synch/semaphore.h
r726e1043 re71a61d 41 41 #include <synch/synch.h> 42 42 43 struct semaphore 44 { 43 typedef struct { 45 44 waitq_t wq; 46 } ;45 } semaphore_t; 47 46 48 47 #define semaphore_down(s) \ -
kernel/generic/include/synch/spinlock.h
r726e1043 re71a61d 43 43 44 44 #ifdef CONFIG_SMP 45 struct spinlock{45 typedef struct { 46 46 #ifdef CONFIG_DEBUG_SPINLOCK 47 47 char *name; 48 48 #endif 49 49 atomic_t val; 50 } ;50 } spinlock_t; 51 51 52 52 /* … … 104 104 #else 105 105 106 typedef void spinlock_t; 107 106 108 /* On UP systems, spinlocks are effectively left out. */ 107 109 #define SPINLOCK_DECLARE(name) -
kernel/generic/include/synch/waitq.h
r726e1043 re71a61d 46 46 47 47 /** Wait queue structure. */ 48 struct waitq{48 typedef struct { 49 49 50 50 /** Lock protecting wait queue structure. … … 56 56 int missed_wakeups; /**< Number of waitq_wakeup() calls that didn't find a thread to wake up. */ 57 57 link_t head; /**< List of sleeping threads for wich there was no missed_wakeup. */ 58 } ;58 } waitq_t; 59 59 60 60 #define waitq_sleep(wq) \ -
kernel/generic/include/typedefs.h
r726e1043 re71a61d 51 51 typedef struct thread thread_t; 52 52 53 typedef struct spinlock spinlock_t;54 typedef struct mutex mutex_t;55 typedef struct semaphore semaphore_t;56 typedef struct rwlock rwlock_t;57 typedef enum rwlock_type rwlock_type_t;58 typedef struct condvar condvar_t;59 typedef struct waitq waitq_t;60 typedef struct futex futex_t;61 62 53 typedef struct as_area as_area_t; 63 54 typedef struct as as_t;
Note:
See TracChangeset
for help on using the changeset viewer.