mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
Kernel: Add a simple shared memory API for two processes only.
And use this to implement shared bitmaps between WindowServer and clients.
This commit is contained in:
parent
4db78dabd3
commit
4ea28bf0a5
13 changed files with 240 additions and 48 deletions
|
@ -8,6 +8,9 @@ __BEGIN_DECLS
|
|||
|
||||
extern char** environ;
|
||||
|
||||
int create_shared_buffer(pid_t peer_pid, size_t, void** buffer);
|
||||
void* get_shared_buffer(int shared_buffer_id);
|
||||
int release_shared_buffer(int shared_buffer_id);
|
||||
int read_tsc(unsigned* lsw, unsigned* msw);
|
||||
inline int getpagesize() { return 4096; }
|
||||
pid_t fork();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue