vdso (a976c2951d8f376112361830aa7762beff83a205) | vdso (98913408c5465ac477f80da7affe347b413edaa4) |
---|---|
1On some architectures, when the kernel loads any userspace program it 2maps an ELF DSO into that program's address space. This DSO is called 3the vDSO and it often contains useful and highly-optimized alternatives 4to real syscalls. 5 6These functions are called just like ordinary C function according to 7your platform's ABI. Call them from a sensible context. (For example, 8if you set CS on x86 to something strange, the vDSO functions are --- 9 unchanged lines hidden (view full) --- 18Programs that dynamically link to glibc will use the vDSO automatically. 19Otherwise, you can use the reference parser in 20tools/testing/selftests/vDSO/parse_vdso.c. 21 22Unless otherwise noted, the set of symbols with any given version and the 23ABI of those symbols is considered stable. It may vary across architectures, 24though. 25 | 1On some architectures, when the kernel loads any userspace program it 2maps an ELF DSO into that program's address space. This DSO is called 3the vDSO and it often contains useful and highly-optimized alternatives 4to real syscalls. 5 6These functions are called just like ordinary C function according to 7your platform's ABI. Call them from a sensible context. (For example, 8if you set CS on x86 to something strange, the vDSO functions are --- 9 unchanged lines hidden (view full) --- 18Programs that dynamically link to glibc will use the vDSO automatically. 19Otherwise, you can use the reference parser in 20tools/testing/selftests/vDSO/parse_vdso.c. 21 22Unless otherwise noted, the set of symbols with any given version and the 23ABI of those symbols is considered stable. It may vary across architectures, 24though. 25 |
26(As of this writing, this ABI documentation as been confirmed for x86_64. | 26Note: 27 As of this writing, this ABI documentation as been confirmed for x86_64. |
27 The maintainers of the other vDSO-using architectures should confirm | 28 The maintainers of the other vDSO-using architectures should confirm |
28 that it is correct for their architecture.) | 29 that it is correct for their architecture. |