Changeset 48bcf49 in mainline for kernel/generic/include/ipc


Ignore:
Timestamp:
2017-09-28T22:08:15Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6636fb19
Parents:
dd20cbb
Message:

Introduce reference-counted kobjects

Capabilities are thus reduced to task-local names for references to kobjects.

Location:
kernel/generic/include/ipc
Files:
2 edited

Legend:

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

    rdd20cbb r48bcf49  
    4343#include <typedefs.h>
    4444#include <mm/slab.h>
     45#include <cap/cap.h>
    4546
    4647struct answerbox;
     
    6162
    6263/** Structure identifying phone (in TASK structure) */
    63 typedef struct {
     64typedef struct phone {
    6465        mutex_t lock;
    6566        link_t link;
     
    6869        ipc_phone_state_t state;
    6970        atomic_t active_calls;
     71        kobject_t *kobject;
    7072} phone_t;
    7173
  • kernel/generic/include/ipc/ipcrsc.h

    rdd20cbb r48bcf49  
    3838#include <proc/task.h>
    3939#include <ipc/ipc.h>
     40#include <cap/cap.h>
    4041
    4142extern call_t *get_call(sysarg_t);
    42 extern phone_t *phone_get_current(int);
    43 extern phone_t *phone_get(task_t *, int);
    44 extern int phone_alloc(task_t *);
    45 extern bool phone_connect(int, answerbox_t *);
    46 extern void phone_dealloc(int);
     43extern cap_handle_t phone_alloc(task_t *);
     44extern bool phone_connect(cap_handle_t, answerbox_t *);
     45extern void phone_dealloc(cap_handle_t);
    4746
    4847#endif
Note: See TracChangeset for help on using the changeset viewer.