Wed 22 Jan 12:17:36 CET 2025
This commit is contained in:
		
							parent
							
								
									35812f60b8
								
							
						
					
					
						commit
						e70722cb03
					
				|  | @ -16,6 +16,14 @@ | |||
| #include "pipe.h" | ||||
| #include "event.h" | ||||
| 
 | ||||
| #ifdef KERNEL_KOBJECT_EXT | ||||
|   #include "kernel_kobject_ext.h" | ||||
| #endif | ||||
| 
 | ||||
| /*
 | ||||
|   Kernel objects, hold, e.g., by processes | ||||
|   It is a wrapper structure for different kind of objects | ||||
| */ | ||||
| struct kobject { | ||||
| 	union { | ||||
| 		struct device       *device; | ||||
|  | @ -24,6 +32,9 @@ struct kobject { | |||
| 		struct window       *window; | ||||
| 		struct console      *console; | ||||
| 		struct pipe         *pipe; | ||||
| #ifdef KERNEL_KOBJECT_EXT | ||||
|     KERNEL_KOBJECT_EXT_OBJECTS | ||||
| #endif | ||||
| 	} data; | ||||
| 	kobject_type_t type; | ||||
| 	int refcount; | ||||
|  | @ -60,4 +71,8 @@ int kobject_get_type(struct kobject *kobject); | |||
| int kobject_set_tag(struct kobject *kobject, char *new_tag); | ||||
| int kobject_get_tag(struct kobject *kobject, char *buffer, int buffer_size); | ||||
| 
 | ||||
| #ifdef KERNEL_KOBJECT_EXT | ||||
|   KERNEL_KOBJECT_EXT_FUNCTIONS | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user