mirror of
https://github.com/drasko/codezero.git
synced 2026-04-01 17:49:05 +02:00
Updates to l4_map and l4_mutex_control man pages.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user