Changeset 625 for trunk/hal/generic/hal_gpt.h
- Timestamp:
- Apr 10, 2019, 10:09:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_gpt.h
r624 r625 167 167 168 168 /**************************************************************************************** 169 * This function is used to implement the "fork" system call: It copies one GPT entry 170 * identified by the <vpn> argument, from a remote <src_gpt_xp> to a local <dst_gpt>. 169 * This function is used to implement the "fork" system call: It copies a remote 170 * source PTE, identified by the <src_gpt_xp> and <src_vpn> arguments, to a local 171 * destination PTE, identified by the <dst_gpt> and <dst_vpn> arguments. 171 172 * It does nothing if the source PTE is not MAPPED and SMALL. 172 173 * It optionnally activates the "Copy on Write" mechanism: when the <cow> argument is 173 174 * true: the GPT_WRITABLE flag is reset, and the GPT_COW flag is set. 174 * A new second level PT2 (s) is allocated fordestination GPT if required.175 * A new second level PT2 is allocated for the destination GPT if required. 175 176 * It returns in the <ppn> and <mapped> arguments the PPN value for the copied PTE, 176 177 * and a boolean indicating if the PTE is mapped and small, and was actually copied. 177 178 **************************************************************************************** 178 * @ dst_gpt : [in] local pointer on the local destination GPT. 179 * @ src_gpt_xp : [in] extended pointer on the remote source GPT. 180 * @ vpn_base : [in] vpn defining the PTE to be copied. 179 * @ dst_gpt : [in] local pointer on local destination GPT. 180 * @ dst_vpn : [in] vpn defining the PTE in the desination GPT. 181 * @ src_gpt_xp : [in] extended pointer on remote source GPT. 182 * @ src_vpn : [in] vpn defining the PTE in the source GPT. 181 183 * @ cow : [in] activate the COPY-On-Write mechanism if true. 182 184 * @ ppn : [out] PPN value (only if mapped is true). … … 185 187 ***************************************************************************************/ 186 188 error_t hal_gpt_pte_copy( gpt_t * dst_gpt, 189 vpn_t dst_vpn, 187 190 xptr_t src_gpt_xp, 188 vpn_t vpn,191 vpn_t src_vpn, 189 192 bool_t cow, 190 193 ppn_t * ppn,
Note: See TracChangeset
for help on using the changeset viewer.