1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

Kernel: PID/TID typing

This compiles, and contains exactly the same bugs as before.
The regex 'FIXME: PID/' should reveal all markers that I left behind, including:
- Incomplete conversion
- Issues or things that look fishy
- Actual bugs that will go wrong during runtime
This commit is contained in:
Ben Wiederhake 2020-08-08 17:32:34 +02:00 committed by Andreas Kling
parent f225321184
commit f5744a6f2f
26 changed files with 136 additions and 111 deletions

View file

@ -36,12 +36,12 @@ namespace Kernel {
class SharedBuffer {
private:
struct Reference {
Reference(pid_t pid)
Reference(ProcessID pid)
: pid(pid)
{
}
pid_t pid;
ProcessID pid;
unsigned count { 0 };
WeakPtr<Region> region;
};
@ -64,12 +64,12 @@ public:
}
void sanity_check(const char* what);
bool is_shared_with(pid_t peer_pid) const;
bool is_shared_with(ProcessID peer_pid) const;
void* ref_for_process_and_get_address(Process& process);
void share_with(pid_t peer_pid);
void share_with(ProcessID peer_pid);
void share_globally() { m_global = true; }
void deref_for_process(Process& process);
void disown(pid_t pid);
void disown(ProcessID pid);
size_t size() const { return m_vmobject->size(); }
void destroy_if_unused();
void seal();