Changes in uspace/lib/c/generic/ddi.c [28f8f170:c0699467] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ddi.c
r28f8f170 rc0699467 53 53 } 54 54 55 /** Map apiece of physical memory to task.55 /** Map piece of physical memory to task. 56 56 * 57 57 * Caller of this function must have the CAP_MEM_MANAGER capability. 58 58 * 59 * @param pf 60 * @param vp 61 * @param pages 62 * @param flags 59 * @param pf Physical address of the starting frame. 60 * @param vp Virtual address of the starting page. 61 * @param pages Number of pages to map. 62 * @param flags Flags for the new address space area. 63 63 * 64 * @return EOK on success 65 * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability 66 * @return ENOENT if there is no task with specified ID 67 * @return ENOMEM if there was some problem in creating 68 * the address space area. 69 * 64 * @return 0 on success, EPERM if the caller lacks the 65 * CAP_MEM_MANAGER capability, ENOENT if there is no task 66 * with specified ID and ENOMEM if there was some problem 67 * in creating address space area. 70 68 */ 71 int physmem_map(void *pf, void *vp, size_t pages, unsignedint flags)69 int physmem_map(void *pf, void *vp, unsigned long pages, int flags) 72 70 { 73 return __SYSCALL4(SYS_PHYSMEM_MAP, (sysarg_t) pf, (sysarg_t) vp, 74 pages,flags);71 return __SYSCALL4(SYS_PHYSMEM_MAP, (sysarg_t) pf, (sysarg_t) vp, pages, 72 flags); 75 73 } 76 74
Note:
See TracChangeset
for help on using the changeset viewer.