Changeset 9f9b6f0e in mainline


Ignore:
Timestamp:
2017-05-30T18:48:03Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
134e3f1
Parents:
c726209
Message:

Fix comments wrt. CAP_ vs. PERM_

File:
1 edited

Legend:

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

    rc726209 r9f9b6f0e  
    6363/** Map a piece of physical memory to task.
    6464 *
    65  * Caller of this function must have the CAP_MEM_MANAGER capability.
     65 * Caller of this function must have the PERM_MEM_MANAGER permission.
    6666 *
    6767 * @param phys  Physical address of the starting frame.
     
    7474 *
    7575 * @return EOK on success.
    76  * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability.
     76 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.
    7777 * @return ENOMEM if there was some problem in creating
    7878 *         the address space area.
     
    8787/** Unmap a piece of physical memory to task.
    8888 *
    89  * Caller of this function must have the CAP_MEM_MANAGER capability.
     89 * Caller of this function must have the PERM_MEM_MANAGER permission.
    9090 *
    9191 * @param virt Virtual address from the phys-mapped region.
    9292 *
    9393 * @return EOK on success.
    94  * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability.
     94 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.
    9595 *
    9696 */
     
    106106 * make it safe for DMA transferts.
    107107 *
    108  * Caller of this function must have the CAP_MEM_MANAGER capability.
     108 * Caller of this function must have the PERM_MEM_MANAGER permission.
    109109 *
    110110 * @param virt      Virtual address of the memory to be locked.
     
    115115 *
    116116 * @return EOK on success.
    117  * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability.
     117 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.
    118118 * @return ENOMEM if there was some problem in creating
    119119 *         the address space area.
     
    130130/** Map a piece of physical memory suitable for DMA transfers.
    131131 *
    132  * Caller of this function must have the CAP_MEM_MANAGER capability.
     132 * Caller of this function must have the PERM_MEM_MANAGER permission.
    133133 *
    134134 * @param size       Number of bytes to map.
     
    143143 *
    144144 * @return EOK on success.
    145  * @return EPERM if the caller lacks the CAP_MEM_MANAGER capability.
     145 * @return EPERM if the caller lacks the PERM_MEM_MANAGER permission.
    146146 * @return ENOMEM if there was some problem in creating
    147147 *         the address space area.
     
    171171/** Enable I/O space range to task.
    172172 *
    173  * Caller of this function must have the IO_MEM_MANAGER capability.
     173 * Caller of this function must have the PERM_IO_MANAGER permission.
    174174 *
    175175 * @param id     Task ID.
     
    178178 *
    179179 * @return EOK on success
    180  * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
     180 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
    181181 * @return ENOENT if there is no task with specified ID
    182182 * @return ENOMEM if there was some problem in allocating memory.
     
    196196/** Disable I/O space range to task.
    197197 *
    198  * Caller of this function must have the IO_MEM_MANAGER capability.
     198 * Caller of this function must have the PERM_IO_MANAGER permission.
    199199 *
    200200 * @param id     Task ID.
     
    203203 *
    204204 * @return EOK on success
    205  * @return EPERM if the caller lacks the CAP_IO_MANAGER capability
     205 * @return EPERM if the caller lacks the PERM_IO_MANAGER permission
    206206 * @return ENOENT if there is no task with specified ID
    207207 *
Note: See TracChangeset for help on using the changeset viewer.