Changeset 442 for GPL/trunk/include/linux
- Timestamp:
- Jun 6, 2009, 11:07:11 AM (16 years ago)
- Location:
- GPL/trunk/include/linux
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/include/linux/compiler-gcc3.h
r305 r442 3 3 /* These definitions are for GCC v3.x. */ 4 4 #include <linux/compiler-gcc.h> 5 6 #define inline __inline 7 #define INLINE inline 8 #define __attribute__ 5 9 6 10 #if __GNUC_MINOR__ >= 1 && __GNUC_MINOR__ < 4 -
GPL/trunk/include/linux/kernel.h
r441 r442 101 101 #define dump_stack() 102 102 #define upper_32_bits(n) ((u32)(((n) >> 16) >> 16)) 103 #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) 103 104 104 105 #endif -
GPL/trunk/include/linux/lockdep.h
r439 r442 1 1 #ifndef __LINUX_LOCKDEP_H 2 2 #define __LINUX_LOCKDEP_H 3 #define SINGLE_DEPTH_NESTING 1 3 4 /* 4 5 * lockdep macros … … 12 13 #define spin_lock_irqsave_nested(lock, f, x) spin_lock_irqsave(lock, f) 13 14 15 14 16 #endif /* __LINUX_LOCKDEP_H */ -
GPL/trunk/include/linux/module.h
r441 r442 70 70 #define MODULE_ALIAS(x) 71 71 72 extern int this_module[64]; 73 #define THIS_MODULE (void *)&this_module[0] 74 #define MODULE_GENERIC_TABLE(gtype,name) 75 #define MODULE_DEVICE_TABLE(type,name) 76 #define EXPORT_SYMBOL(a) 77 72 78 #endif /* _LINUX_MODULE_H */ -
GPL/trunk/include/linux/slab.h
r32 r442 4 4 * (markhe@nextd.demon.co.uk) 5 5 */ 6 7 #include <linux/types.h> 6 8 7 9 #if !defined(_LINUX_SLAB_H) … … 66 68 #endif 67 69 70 void *kzalloc(size_t n, gfp_t gfp_flags); 71 void *kcalloc(size_t n, size_t size, unsigned int __nocast gfp_flags); 72 68 73 #endif /* _LINUX_SLAB_H */ -
GPL/trunk/include/linux/string.h
r441 r442 11 11 #endif 12 12 13 char *kstrdup(const char *s, unsigned int gfp_flags); 14 13 15 #endif 14 16 -
GPL/trunk/include/linux/time.h
r441 r442 126 126 #define do_posix_clock_monotonic_gettime getnstimeofday 127 127 128 void msleep(unsigned int msecs); 129 128 130 #endif -
GPL/trunk/include/linux/types.h
r441 r442 136 136 #include <string.h> 137 137 typedef __u32 __le32; 138 typedef unsigned int fmode_t; 139 138 140 #endif /* _LINUX_TYPES_H */ -
GPL/trunk/include/linux/workqueue.h
r441 r442 1 1 #ifndef __LINUX_WORKQUEUE_H 2 2 #define __LINUX_WORKQUEUE_H 3 4 #include <sound/compat_22.h> 5 /* we know this is used below exactly once for at most one waiter */ 6 3 7 struct work_struct { 4 8 unsigned long pending; … … 10 14 }; 11 15 16 struct workqueue_struct { 17 spinlock_t lock; 18 const char *name; 19 struct list_head worklist; 20 int task_pid; 21 struct task_struct *task; 22 wait_queue_head_t more_work; 23 wait_queue_head_t work_done; 24 struct completion thread_exited; 25 }; 12 26 struct delayed_work { 13 27 struct work_struct work; 14 28 }; 29 30 struct workqueue_struct *create_workqueue(const char *name); 31 void destroy_workqueue(struct workqueue_struct *wq); 32 int queue_work(struct workqueue_struct *wq, struct work_struct *work); 33 void flush_workqueue(struct workqueue_struct *wq); 15 34 16 35 #define INIT_WORK(_work, _func, _data) \ … … 35 54 #define INIT_WORK(w,f) snd_INIT_WORK(w,f) 36 55 #define create_singlethread_workqueue(name) create_workqueue(name) 56 37 57 #endif /* __LINUX_WORKQUEUE_H */
Note:
See TracChangeset
for help on using the changeset viewer.