Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7e3826d in mainline


Ignore:
Timestamp:
2017-08-16T21:52:46Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
05ffb41
Parents:
c8cec85
Message:

Provide basic interfaces to work with kobjects

Location:
kernel
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rc8cec85 r7e3826d  
    286286        generic/src/ipc/irq.c \
    287287        generic/src/ipc/event.c \
     288        generic/src/kobject/kobject.c \
    288289        generic/src/security/perm.c \
    289290        generic/src/sysinfo/sysinfo.c \
  • kernel/generic/include/kobject/kobject.h

    rc8cec85 r7e3826d  
    4040#define MAX_KERNEL_OBJECTS  64
    4141
     42#define KOBJECT_INVALID_CAP -1
     43
    4244typedef enum {
    43         KOBJECT_TYPE_INVALID
     45        KOBJECT_TYPE_INVALID,
     46        KOBJECT_TYPE_ALLOCATED
    4447} kobject_type_t;
    4548
     
    5053} kobject_t;
    5154
     55extern kobject_t *kobject_get_local(int, kobject_type_t);
     56
     57struct task;
     58extern int kobject_alloc(struct task *);
     59extern void kobject_free(struct task *, int);
    5260
    5361#endif
  • kernel/generic/include/proc/task.h

    rc8cec85 r7e3826d  
    9797        perm_t perms;
    9898
    99         /** Sending communication endpoints */
     99        /** Kernel objects */
    100100        kobject_t kobject[MAX_KERNEL_OBJECTS];
    101101       
Note: See TracChangeset for help on using the changeset viewer.