Changeset 05ffb41 in mainline for kernel/generic/include
- Timestamp:
- 2017-08-17T19:11:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c85bae
- Parents:
- 7e3826d9
- Location:
- kernel/generic/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/ipc.h
r7e3826d9 r05ffb41 43 43 #include <typedefs.h> 44 44 45 #define IPC_MAX_PHONES 6446 47 45 struct answerbox; 48 46 struct task; -
kernel/generic/include/ipc/ipcrsc.h
r7e3826d9 r05ffb41 40 40 41 41 extern call_t *get_call(sysarg_t); 42 extern int phone_get(sysarg_t, phone_t **); 42 extern phone_t *phone_get_current(int); 43 extern phone_t *phone_get(task_t *, int); 43 44 extern int phone_alloc(task_t *); 44 45 extern bool phone_connect(int, answerbox_t *); -
kernel/generic/include/kobject/kobject.h
r7e3826d9 r05ffb41 37 37 38 38 #include <typedefs.h> 39 #include <ipc/ipc.h> 39 40 40 41 #define MAX_KERNEL_OBJECTS 64 … … 44 45 typedef enum { 45 46 KOBJECT_TYPE_INVALID, 46 KOBJECT_TYPE_ALLOCATED 47 KOBJECT_TYPE_ALLOCATED, 48 KOBJECT_TYPE_PHONE 47 49 } kobject_type_t; 48 50 49 typedef struct {51 typedef struct kobject { 50 52 kobject_type_t type; 53 bool (* can_reclaim)(struct kobject *); 54 51 55 union { 56 phone_t phone; 52 57 }; 53 58 } kobject_t; 54 59 55 extern kobject_t *kobject_get_local(int, kobject_type_t);60 struct task; 56 61 57 struct task; 62 extern void kobject_init(kobject_t *); 63 extern kobject_t *kobject_get(struct task *, int, kobject_type_t); 64 extern kobject_t *kobject_get_current(int, kobject_type_t); 58 65 extern int kobject_alloc(struct task *); 59 66 extern void kobject_free(struct task *, int); -
kernel/generic/include/proc/task.h
r7e3826d9 r05ffb41 105 105 answerbox_t answerbox; 106 106 107 /** Sending communication endpoints */108 phone_t phones[IPC_MAX_PHONES];109 110 107 /** Spinlock protecting the active_calls list. */ 111 108 SPINLOCK_DECLARE(active_calls_lock);
Note:
See TracChangeset
for help on using the changeset viewer.