Changes in kernel/generic/include/cap/cap.h [c1f68b0:09d01f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cap/cap.h
rc1f68b0 r09d01f2 36 36 #define KERN_CAP_H_ 37 37 38 #include <abi/cap.h> 38 39 #include <typedefs.h> 39 40 #include <adt/list.h> … … 44 45 #include <atomic.h> 45 46 46 typedef int cap_handle_t;47 48 47 typedef enum { 49 48 CAP_STATE_FREE, … … 53 52 54 53 typedef enum { 54 KOBJECT_TYPE_CALL, 55 KOBJECT_TYPE_IRQ, 55 56 KOBJECT_TYPE_PHONE, 56 KOBJECT_TYPE_IRQ,57 57 KOBJECT_TYPE_MAX 58 58 } kobject_type_t; 59 59 60 60 struct task; 61 62 struct call; 63 struct irq; 61 64 struct phone; 62 struct irq;63 65 64 66 struct kobject; … … 79 81 union { 80 82 void *raw; 83 struct call *call; 84 struct irq *irq; 81 85 struct phone *phone; 82 struct irq *irq;83 86 }; 84 87 } kobject_t; … … 118 121 bool (*)(cap_t *, void *), void *); 119 122 120 extern cap_handle_t cap_alloc(struct task*);123 extern int cap_alloc(struct task *, cap_handle_t *); 121 124 extern void cap_publish(struct task *, cap_handle_t, kobject_t *); 122 125 extern kobject_t *cap_unpublish(struct task *, cap_handle_t, kobject_type_t);
Note:
See TracChangeset
for help on using the changeset viewer.