Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/cap/cap.h

    rc1f68b0 r09d01f2  
    3636#define KERN_CAP_H_
    3737
     38#include <abi/cap.h>
    3839#include <typedefs.h>
    3940#include <adt/list.h>
     
    4445#include <atomic.h>
    4546
    46 typedef int cap_handle_t;
    47 
    4847typedef enum {
    4948        CAP_STATE_FREE,
     
    5352
    5453typedef enum {
     54        KOBJECT_TYPE_CALL,
     55        KOBJECT_TYPE_IRQ,
    5556        KOBJECT_TYPE_PHONE,
    56         KOBJECT_TYPE_IRQ,
    5757        KOBJECT_TYPE_MAX
    5858} kobject_type_t;
    5959
    6060struct task;
     61
     62struct call;
     63struct irq;
    6164struct phone;
    62 struct irq;
    6365
    6466struct kobject;
     
    7981        union {
    8082                void *raw;
     83                struct call *call;
     84                struct irq *irq;
    8185                struct phone *phone;
    82                 struct irq *irq;
    8386        };
    8487} kobject_t;
     
    118121    bool (*)(cap_t *, void *), void *);
    119122
    120 extern cap_handle_t cap_alloc(struct task *);
     123extern int cap_alloc(struct task *, cap_handle_t *);
    121124extern void cap_publish(struct task *, cap_handle_t, kobject_t *);
    122125extern kobject_t *cap_unpublish(struct task *, cap_handle_t, kobject_type_t);
Note: See TracChangeset for help on using the changeset viewer.