Changeset 455241b in mainline for kernel/generic/include/cap/cap.h
- Timestamp:
- 2025-01-16T19:29:20Z (13 days ago)
- Children:
- 74353920
- Parents:
- df721df
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-16 19:23:14)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-16 19:29:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cap/cap.h
rdf721df r455241b 60 60 } kobject_type_t; 61 61 62 struct task; 63 64 struct call; 65 struct irq; 66 struct phone; 67 struct waitq; 62 struct kobject; 68 63 69 64 typedef struct kobject_ops { 70 void (*destroy)( void*);65 void (*destroy)(struct kobject *); 71 66 } kobject_ops_t; 72 67 … … 77 72 /* 78 73 * Everything in kobject_t except for the atomic reference count, the capability 79 * list and its lock is im utable.74 * list and its lock is immutable. 80 75 */ 81 76 typedef struct kobject { … … 87 82 /** List of published capabilities associated with the kobject */ 88 83 list_t caps_list; 89 90 union {91 void *raw;92 struct call *call;93 struct irq *irq;94 struct phone *phone;95 struct waitq *waitq;96 };97 84 } kobject_t; 98 85 … … 141 128 extern void cap_free(struct task *, cap_handle_t); 142 129 143 extern kobject_t *kobject_alloc(unsigned int); 144 extern void kobject_free(kobject_t *); 145 extern void kobject_initialize(kobject_t *, kobject_type_t, void *); 130 extern void kobject_initialize(kobject_t *, kobject_type_t); 146 131 extern kobject_t *kobject_get(struct task *, cap_handle_t, kobject_type_t); 147 132 extern void kobject_add_ref(kobject_t *);
Note:
See TracChangeset
for help on using the changeset viewer.