Ignore:
File:
1 edited

Legend:

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

    r24abb85d r7ee7e6a  
    5151
    5252
     53/** Return unique device number.
     54 *
     55 * @return New unique device number.
     56 *
     57 */
     58int device_assign_devno(void)
     59{
     60        return __SYSCALL0(SYS_DEVICE_ASSIGN_DEVNO);
     61}
     62
    5363/** Map a piece of physical memory to task.
    5464 *
    55  * Caller of this function must have the PERM_MEM_MANAGER permission.
     65 * Caller of this function must have the CAP_MEM_MANAGER capability.
    5666 *
    5767 * @param phys  Physical address of the starting frame.
     
    6474 *
    6575 * @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.
    6777 * @return ENOMEM if there was some problem in creating
    6878 *         the address space area.
     
    7787/** Unmap a piece of physical memory to task.
    7888 *
    79  * Caller of this function must have the PERM_MEM_MANAGER permission.
     89 * Caller of this function must have the CAP_MEM_MANAGER capability.
    8090 *
    8191 * @param virt Virtual address from the phys-mapped region.
    8292 *
    8393 * @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.
    8595 *
    8696 */
     
    96106 * make it safe for DMA transferts.
    97107 *
    98  * Caller of this function must have the PERM_MEM_MANAGER permission.
     108 * Caller of this function must have the CAP_MEM_MANAGER capability.
    99109 *
    100110 * @param virt      Virtual address of the memory to be locked.
     
    105115 *
    106116 * @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.
    108118 * @return ENOMEM if there was some problem in creating
    109119 *         the address space area.
     
    120130/** Map a piece of physical memory suitable for DMA transfers.
    121131 *
    122  * Caller of this function must have the PERM_MEM_MANAGER permission.
     132 * Caller of this function must have the CAP_MEM_MANAGER capability.
    123133 *
    124134 * @param size       Number of bytes to map.
     
    133143 *
    134144 * @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.
    136146 * @return ENOMEM if there was some problem in creating
    137147 *         the address space area.
     
    161171/** Enable I/O space range to task.
    162172 *
    163  * Caller of this function must have the PERM_IO_MANAGER permission.
     173 * Caller of this function must have the IO_MEM_MANAGER capability.
    164174 *
    165175 * @param id     Task ID.
     
    168178 *
    169179 * @return EOK on success
    170  * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
     180 * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
    171181 * @return ENOENT if there is no task with specified ID
    172182 * @return ENOMEM if there was some problem in allocating memory.
     
    186196/** Disable I/O space range to task.
    187197 *
    188  * Caller of this function must have the PERM_IO_MANAGER permission.
     198 * Caller of this function must have the IO_MEM_MANAGER capability.
    189199 *
    190200 * @param id     Task ID.
     
    193203 *
    194204 * @return EOK on success
    195  * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
     205 * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
    196206 * @return ENOENT if there is no task with specified ID
    197207 *
Note: See TracChangeset for help on using the changeset viewer.