diff options
Diffstat (limited to 'src/arch/vmpa.h')
-rw-r--r-- | src/arch/vmpa.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h index d89c290..85ff6b4 100644 --- a/src/arch/vmpa.h +++ b/src/arch/vmpa.h @@ -74,6 +74,9 @@ int cmp_vmpa_by_phy(const vmpa2t *, const vmpa2t *); /* Compare entre elles deux adresses virtuelles. */ int cmp_vmpa_by_virt(const vmpa2t *, const vmpa2t *); +/* Compare deux localisations selon leurs parties définies. */ +int cmp_vmpa(const vmpa2t *, const vmpa2t *); + #define are_equal(a, b) \ (cmp_vmpa_by_phy(a, b) == 0 && cmp_vmpa_by_virt(a, b) == 0) @@ -101,6 +104,12 @@ char *vmpa2_phys_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], /* Transforme une adresse virtuelle en chaîne de caractères. */ char *vmpa2_virt_to_string(const vmpa2t *, MemoryDataSize, char [VMPA_MAX_LEN], size_t *); +/* Transforme une chaîne de caractères en position physique. */ +vmpa2t *string_to_vmpa_phy(const char *); + +/* Transforme une chaîne de caractères en adresse virtuelle. */ +vmpa2t *string_to_vmpa_virt(const char *); + #endif /* _ARCH_VMPA_H */ |