Changeset 18 for trunk/kernel/mm/vseg.h
- Timestamp:
- Jun 3, 2017, 4:42:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vseg.h
r16 r18 57 57 58 58 /********************************************************************************************** 59 * These masks define the vseg generic (hardware independ ant) flags.59 * These masks define the vseg generic (hardware independent) flags. 60 60 *********************************************************************************************/ 61 61 … … 79 79 intptr_t max; /*! segment max virtual address (excluded) */ 80 80 vpn_t vpn_base; /*! first page of vseg */ 81 vpn_t vpn_size; /*! numb reof pages occupied */81 vpn_t vpn_size; /*! number of pages occupied */ 82 82 uint32_t flags; /*! vseg attributes */ 83 83 xptr_t mapper; /*! extended pointer on associated mapper */ … … 119 119 *********************************************************************************************/ 120 120 void vseg_init( vseg_t * vseg, 121 intptr_t base, 122 intptr_t size, 121 intptr_t base, 122 intptr_t size, 123 123 vpn_t vpn_base, 124 124 vpn_t vpn_size, … … 139 139 140 140 /********************************************************************************************** 141 * This function add a vseg descriptor in the set of vsegs controled by a given VMM,142 * and update the vmm field in the vseg descriptor.141 * This function adds a vseg descriptor in the set of vsegs controlled by a given VMM, 142 * and updates the vmm field in the vseg descriptor. 143 143 * The lock protecting the vsegs list in VMM must be taken by the caller. 144 144 ********************************************************************************************** … … 147 147 * @ returns 0 if success / returns ENOMEM if failure. 148 148 *********************************************************************************************/ 149 error_t vseg_attach( struct vmm_s * vmm, 149 error_t vseg_attach( struct vmm_s * vmm, 150 150 vseg_t * vseg ); 151 151 152 152 /********************************************************************************************** 153 * This function removes a vseg descriptor from the set of vsegs control ed by a given VMM,154 * and update the vmm field in the vseg descriptor. No memory is released.153 * This function removes a vseg descriptor from the set of vsegs controlled by a given VMM, 154 * and updates the vmm field in the vseg descriptor. No memory is released. 155 155 * The lock protecting the vsegs list in VMM must be taken by the caller. 156 156 ********************************************************************************************** … … 158 158 * @ vseg : pointer on the vseg descriptor 159 159 *********************************************************************************************/ 160 void vseg_detach( struct vmm_s * vmm, 160 void vseg_detach( struct vmm_s * vmm, 161 161 vseg_t * vseg ); 162 162
Note: See TracChangeset
for help on using the changeset viewer.