diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 21:29:26 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 21:29:26 +0100 |
commit | 77cf607cdabfdf9231767556b86e85be0f40b20b (patch) | |
tree | 84ca0b4b1ae1d1ba05721ea7407bd6be5844f594 /Kernel/VM/MemoryManager.cpp | |
parent | 931e4b7f5ec8a5ced69c3789ecdcf0772cbee7ef (diff) | |
download | serenity-77cf607cdabfdf9231767556b86e85be0f40b20b.zip |
Kernel+LibC: Publish a "kernel info page" and use it for gettimeofday()
This patch adds a single "kernel info page" that is mappable read-only
by any process and contains the current time of day.
This is then used to implement a version of gettimeofday() that doesn't
have to make a syscall.
To protect against race condition issues, the info page also has a
serial number which is incremented whenever the kernel updates the
contents of the page. Make sure to verify that the serial number is the
same before and after reading the information you want from the page.
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions