Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ddi.c

    r7ee7e6a r24abb85d  
    5151
    5252
    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 
    6353/** Map a piece of physical memory to task.
    6454 *
    65  * Caller of this function must have the CAP_MEM_MANAGER capability.
     55 * Caller of this function must have the PERM_MEM_MANAGER permission.
    6656 *
    6757 * @param phys  Physical address of the starting frame.
     
    7464 *
    7565 * @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.
    7767 * @return ENOMEM if there was some problem in creating
    7868 *         the address space area.
     
    8777/** Unmap a piece of physical memory to task.
    8878 *
    89  * Caller of this function must have the CAP_MEM_MANAGER capability.
     79 * Caller of this function must have the PERM_MEM_MANAGER permission.
    9080 *
    9181 * @param virt Virtual address from the phys-mapped region.
    9282 *
    9383 * @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.
    9585 *
    9686 */
     
    10696 * make it safe for DMA transferts.
    10797 *
    108  * Caller of this function must have the CAP_MEM_MANAGER capability.
     98 * Caller of this function must have the PERM_MEM_MANAGER permission.
    10999 *
    110100 * @param virt      Virtual address of the memory to be locked.
     
    115105 *
    116106 * @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.
    118108 * @return ENOMEM if there was some problem in creating
    119109 *         the address space area.
     
    130120/** Map a piece of physical memory suitable for DMA transfers.
    131121 *
    132  * Caller of this function must have the CAP_MEM_MANAGER capability.
     122 * Caller of this function must have the PERM_MEM_MANAGER permission.
    133123 *
    134124 * @param size       Number of bytes to map.
     
    143133 *
    144134 * @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.
    146136 * @return ENOMEM if there was some problem in creating
    147137 *         the address space area.
     
    171161/** Enable I/O space range to task.
    172162 *
    173  * Caller of this function must have the IO_MEM_MANAGER capability.
     163 * Caller of this function must have the PERM_IO_MANAGER permission.
    174164 *
    175165 * @param id     Task ID.
     
    178168 *
    179169 * @return EOK on success
    180  * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
     170 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
    181171 * @return ENOENT if there is no task with specified ID
    182172 * @return ENOMEM if there was some problem in allocating memory.
     
    196186/** Disable I/O space range to task.
    197187 *
    198  * Caller of this function must have the IO_MEM_MANAGER capability.
     188 * Caller of this function must have the PERM_IO_MANAGER permission.
    199189 *
    200190 * @param id     Task ID.
     
    203193 *
    204194 * @return EOK on success
    205  * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
     195 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
    206196 * @return ENOENT if there is no task with specified ID
    207197 *
Note: See TracChangeset for help on using the changeset viewer.