OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [docs/] [man/] [man7/] [l4_unmap.7] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
.TH L4_UNMAP 7 2009-11-02 "Codezero" "Codezero Programmer's Manual"
2
.SH NAME
3
.nf
4
.BR "l4_unmap" " - removes virtual to physical address mappings."
5
 
6
.SH SYNOPSIS
7
.nf
8
.B #include 
9
.B #include 
10
 
11
.BI "int l4_unmap(void " "*virtual" ", unsigned long " "npages" ", l4id_t " "tid" ")"
12
.SH DESCRIPTION
13
.B l4_unmap()
14
.RI "removes a virtual to physical mapping from the address space of the thread identified by " "tid " "starting from virtual address " "virtual" ", and spanning " "npages" " number of pages."
15
 
16
 
17
 
18
.SH L4 USERSPACE LIBRARY
19
 
20
.nf
21
/*
22
 * Unmaps the given virtual address from current address space
23
 * spanning npages number of pages. Returns negative value
24
 * if the address was already unmapped.
25
 */
26
.BI "static inline void *l4_unmap_helper(void " "*virt" ", int " "npages" ");"
27
 
28
.fi
29
.SH RETURN VALUE
30
.BR "l4_unmap"()
31
returns 0 on success, and negative value on failure. See below for error codes.
32
 
33
.SH ERRORS
34
 
35
.B -ESRCH
36
The thread to remove the mapping could not be found on the system.
37
 
38
.B -ENOCAP
39
Capabilities required don't exist or caller do not have sufficient privileges.
40
 
41
.B -ENOMAP
42
There is already an unmapped area in one of the pages that were unmapped. This may or may not be an error, depending on what state the caller expects the unmapped area to be in.
43
 
44
.SH SEE ALSO
45
.BR "l4_map"(7)
46
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.