VirtualBox

Changeset 85504 in vbox for trunk/include


Ignore:
Timestamp:
Jul 29, 2020 10:02:13 AM (5 years ago)
Author:
vboxsync
Message:

IPRT/memobj-r0drv*: Change the fExecutable flag to WX semantics where possible (linux 5.8+ only atm). Linux 5.8 adjustments. bugref:9801

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/memobj.h

    r82968 r85504  
    128128 * @param   pMemObj         Where to store the ring-0 memory object handle.
    129129 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    130  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     130 * @param   fExecutable     Flag indicating whether it should be permitted to
     131 *                          executed code in the memory object.  The user must
     132 *                          use RTR0MemObjProtect after initialization the
     133 *                          allocation to actually make it executable.
    131134 */
    132135#define RTR0MemObjAllocPage(pMemObj, cb, fExecutable) \
     
    141144 * @param   pMemObj         Where to store the ring-0 memory object handle.
    142145 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    143  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     146 * @param   fExecutable     Flag indicating whether it should be permitted to
     147 *                          executed code in the memory object.  The user must
     148 *                          use RTR0MemObjProtect after initialization the
     149 *                          allocation to actually make it executable.
    144150 * @param   pszTag          Allocation tag used for statistics and such.
    145151 */
     
    155161 * @param   pMemObj         Where to store the ring-0 memory object handle.
    156162 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    157  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     163 * @param   fExecutable     Flag indicating whether it should be permitted to
     164 *                          executed code in the memory object.  The user must
     165 *                          use RTR0MemObjProtect after initialization the
     166 *                          allocation to actually make it executable.
    158167 */
    159168#define RTR0MemObjAllocLow(pMemObj, cb, fExecutable) \
     
    169178 * @param   pMemObj         Where to store the ring-0 memory object handle.
    170179 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    171  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     180 * @param   fExecutable     Flag indicating whether it should be permitted to
     181 *                          executed code in the memory object.  The user must
     182 *                          use RTR0MemObjProtect after initialization the
     183 *                          allocation to actually make it executable.
    172184 * @param   pszTag          Allocation tag used for statistics and such.
    173185 */
     
    183195 * @param   pMemObj         Where to store the ring-0 memory object handle.
    184196 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    185  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     197 * @param   fExecutable     Flag indicating whether it should be permitted to
     198 *                          executed code in the memory object.  The user must
     199 *                          use RTR0MemObjProtect after initialization the
     200 *                          allocation to actually make it executable.
    186201 */
    187202#define RTR0MemObjAllocCont(pMemObj, cb, fExecutable) \
     
    197212 * @param   pMemObj         Where to store the ring-0 memory object handle.
    198213 * @param   cb              Number of bytes to allocate. This is rounded up to nearest page.
    199  * @param   fExecutable     Flag indicating whether it should be permitted to executed code in the memory object.
     214 * @param   fExecutable     Flag indicating whether it should be permitted to
     215 *                          executed code in the memory object.  The user must
     216 *                          use RTR0MemObjProtect after initialization the
     217 *                          allocation to actually make it executable.
    200218 * @param   pszTag          Allocation tag used for statistics and such.
    201219 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette