mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
- Added cleaner allocation of shm addresses by moving the allocation to do_mmap(). - Added deletion routine for all objects: shadow, vm_file of type vfs_file, shm_file, etc. - Need to make sure objects get deleted properly after exit(). - Currently we allow a single, unique virtual address for each shm segment.
18 lines
407 B
C
18 lines
407 B
C
#ifndef __MM0_UTCB_H__
|
|
#define __MM0_UTCB_H__
|
|
|
|
#include <l4lib/types.h>
|
|
#include <task.h>
|
|
int utcb_pool_init(void);
|
|
void *utcb_new_address(void);
|
|
int utcb_delete_address(void *utcb_addr);
|
|
|
|
|
|
/* IPC to send utcb address information to tasks */
|
|
void *task_send_utcb_address(struct tcb *sender, l4id_t taskid);
|
|
|
|
/* Prefault an *mmaped* utcb */
|
|
int utcb_prefault(struct tcb *task, unsigned int vmflags);
|
|
|
|
#endif
|