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