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