Updates to l4_map and l4_mutex_control man pages.

This commit is contained in:
Bahadir Balban
2009-12-03 16:27:47 +02:00
parent 72be4e9fae
commit 72b5f1d1b1
2 changed files with 49 additions and 28 deletions

View File

@@ -16,7 +16,7 @@
A thread who calls this function must possess capabilities associated with the physical and virtual memory ranges to be mapped. In particular, the range and access permissions for one or more physical and one or more virtual memory capabilities must match the request.
Due to the hierarchical nature of page table organization on some cpu architectures, an
.BR "l4_map() " "request may result in a middle-level page-table expenditure. The caller is also expected to have enough capability resources, namely " "mappool " "capabilities, to cover these cases. All formerly mentioned capability parameters may be adjusted at kernel configuration time. For more information see
.BR "l4_map() " "request may result in a middle-level page-table expenditure. The caller is also expected to have enough capability resources, namely " "mappool " "capabilities, to cover these cases. All formerly mentioned capability parameters may be configured at kernel configuration time. For more information see
.BR "capability" "(7)."
.IR "flags " " field determines different mapping permissions and caching behaviour as defined below:"
@@ -38,20 +38,21 @@ Map with read/write permissions for userspace as non-cacheable/non-bufferable.
.TP
.B MAP_USR_DEFAULT_FLAGS
An alias for MAP_USR_RW_FLAGS. This is the default for userspace
An alias for MAP_USR_RW_FLAGS (See above). This is the default for userspace
.TP
.B MAP_IO_DEFAULT_FLAGS
An alias for MAP_USR_IO_FLAGS (See above) This is the default for userspace device mappings
An alias for MAP_USR_IO_FLAGS (See above). This is the default for userspace device mappings
.SH L4 Userspace Library Functions
.nf
/*
* Map given physical address to a virtual address
* in the current task spanning npages in size.
*/
/*
* Helper that maps given physical address to a virtual address
* in the current task spanning npages in size.
* Returns mapped virtual address on success, negative value on error.
*/
.BI "static inline void *l4_map_helper(void " "*phys" ", int " "npages" ");"
.SH RETURN VALUE