Changeset 05913fe7 in mainline for kernel/generic/include/cap/cap.h
- Timestamp:
- 2017-10-09T22:18:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2bdf92a5
- Parents:
- e02bfb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cap/cap.h
re02bfb4 r05913fe7 38 38 #include <typedefs.h> 39 39 #include <adt/list.h> 40 #include <adt/hash.h> 41 #include <adt/hash_table.h> 42 #include <lib/ra.h> 40 43 #include <synch/mutex.h> 41 44 #include <atomic.h> 42 43 #define MAX_CAPS 6444 45 45 46 typedef int cap_handle_t; … … 89 90 cap_state_t state; 90 91 92 struct task *task; 91 93 cap_handle_t handle; 92 94 93 95 /* Link to the task's capabilities of the same kobject type. */ 94 link_t link; 96 link_t type_link; 97 98 ht_link_t caps_link; 95 99 96 100 /* The underlying kernel object. */ … … 103 107 list_t type_list[KOBJECT_TYPE_MAX]; 104 108 105 cap_t *caps; 109 hash_table_t caps; 110 ra_arena_t *handles; 106 111 } cap_info_t; 107 112 … … 112 117 bool (*)(cap_t *, void *), void *); 113 118 114 extern void cap_initialize(cap_t *, cap_handle_t);115 119 extern cap_handle_t cap_alloc(struct task *); 116 120 extern void cap_publish(struct task *, cap_handle_t, kobject_t *);
Note:
See TracChangeset
for help on using the changeset viewer.