Changes in uspace/lib/c/generic/ddi.c [24abb85d:7ee7e6a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ddi.c
r24abb85d r7ee7e6a 51 51 52 52 53 /** Return unique device number. 54 * 55 * @return New unique device number. 56 * 57 */ 58 int device_assign_devno(void) 59 { 60 return __SYSCALL0(SYS_DEVICE_ASSIGN_DEVNO); 61 } 62 53 63 /** Map a piece of physical memory to task. 54 64 * 55 * Caller of this function must have the PERM_MEM_MANAGER permission.65 * Caller of this function must have the CAP_MEM_MANAGER capability. 56 66 * 57 67 * @param phys Physical address of the starting frame. … … 64 74 * 65 75 * @return EOK on success. 66 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.76 * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability. 67 77 * @return ENOMEM if there was some problem in creating 68 78 * the address space area. … … 77 87 /** Unmap a piece of physical memory to task. 78 88 * 79 * Caller of this function must have the PERM_MEM_MANAGER permission.89 * Caller of this function must have the CAP_MEM_MANAGER capability. 80 90 * 81 91 * @param virt Virtual address from the phys-mapped region. 82 92 * 83 93 * @return EOK on success. 84 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.94 * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability. 85 95 * 86 96 */ … … 96 106 * make it safe for DMA transferts. 97 107 * 98 * Caller of this function must have the PERM_MEM_MANAGER permission.108 * Caller of this function must have the CAP_MEM_MANAGER capability. 99 109 * 100 110 * @param virt Virtual address of the memory to be locked. … … 105 115 * 106 116 * @return EOK on success. 107 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.117 * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability. 108 118 * @return ENOMEM if there was some problem in creating 109 119 * the address space area. … … 120 130 /** Map a piece of physical memory suitable for DMA transfers. 121 131 * 122 * Caller of this function must have the PERM_MEM_MANAGER permission.132 * Caller of this function must have the CAP_MEM_MANAGER capability. 123 133 * 124 134 * @param size Number of bytes to map. … … 133 143 * 134 144 * @return EOK on success. 135 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.145 * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability. 136 146 * @return ENOMEM if there was some problem in creating 137 147 * the address space area. … … 161 171 /** Enable I/O space range to task. 162 172 * 163 * Caller of this function must have the PERM_IO_MANAGER permission.173 * Caller of this function must have the IO_MEM_MANAGER capability. 164 174 * 165 175 * @param id Task ID. … … 168 178 * 169 179 * @return EOK on success 170 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission180 * @return EPERM if the caller lacks the CAP_IO_MANAGER capability 171 181 * @return ENOENT if there is no task with specified ID 172 182 * @return ENOMEM if there was some problem in allocating memory. … … 186 196 /** Disable I/O space range to task. 187 197 * 188 * Caller of this function must have the PERM_IO_MANAGER permission.198 * Caller of this function must have the IO_MEM_MANAGER capability. 189 199 * 190 200 * @param id Task ID. … … 193 203 * 194 204 * @return EOK on success 195 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission205 * @return EPERM if the caller lacks the CAP_IO_MANAGER capability 196 206 * @return ENOENT if there is no task with specified ID 197 207 *
Note:
See TracChangeset
for help on using the changeset viewer.