Changeset d24e987 in mainline for kernel/generic/include/cap/cap.h
- Timestamp:
- 2018-10-16T18:03:43Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d93763a, e344422
- Parents:
- c0cef6f9
- git-author:
- Jakub Jermar <jakub@…> (2018-10-16 17:55:57)
- git-committer:
- Jakub Jermar <jakub@…> (2018-10-16 18:03:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cap/cap.h
rc0cef6f9 rd24e987 69 69 70 70 /* 71 * Everything in kobject_t except for the atomic reference count is imutable. 71 * Everything in kobject_t except for the atomic reference count, the capability 72 * list and its lock is imutable. 72 73 */ 73 74 typedef struct kobject { 74 75 kobject_type_t type; 75 76 atomic_t refcnt; 77 78 /** Mutex protecting caps_list */ 79 mutex_t caps_list_lock; 80 /** List of published capabilities associated with the kobject */ 81 list_t caps_list; 76 82 77 83 kobject_ops_t *ops; … … 93 99 struct task *task; 94 100 cap_handle_t handle; 101 102 /** Link to the kobject's list of capabilities. */ 103 link_t kobj_link; 95 104 96 105 /* Link to the task's capabilities of the same kobject type. */ … … 122 131 extern void cap_publish(struct task *, cap_handle_t, kobject_t *); 123 132 extern kobject_t *cap_unpublish(struct task *, cap_handle_t, kobject_type_t); 133 extern void cap_revoke(kobject_t *); 124 134 extern void cap_free(struct task *, cap_handle_t); 125 135
Note:
See TracChangeset
for help on using the changeset viewer.