Changeset e7ac23d0 in mainline for kernel/generic/include/kobject/kobject.h
- Timestamp:
- 2017-08-20T14:53:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f74275
- Parents:
- 49115ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/kobject/kobject.h
r49115ac re7ac23d0 42 42 #define MAX_KERNEL_OBJECTS 64 43 43 44 #define for_each_kobject(task, ko, type) \ 45 for (int i = 0, l = 1; i < MAX_KERNEL_OBJECTS && l; i++) \ 46 for (kobject_t *(ko) = kobject_get((task), i, (type)); \ 47 (ko) && !(l = 0); (ko) = NULL, l = 1) 48 49 #define for_each_kobject_current(ko, type) \ 50 for_each_kobject(TASK, (ko), (type)) 51 44 52 typedef enum { 45 53 KOBJECT_TYPE_INVALID, … … 61 69 struct task; 62 70 71 void kobject_task_alloc(struct task *); 72 void kobject_task_free(struct task *); 73 void kobject_task_init(struct task *); 74 63 75 extern void kobject_initialize(kobject_t *); 64 76 extern kobject_t *kobject_get(struct task *, int, kobject_type_t); … … 67 79 extern void kobject_free(struct task *, int); 68 80 81 extern int kobject_to_cap(struct task *, kobject_t *); 82 69 83 #endif 70 84
Note:
See TracChangeset
for help on using the changeset viewer.