mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
ProcFS: Add sysctl strings.
They are backed by a Lockable<String> to ensure that access is synchronized.
This commit is contained in:
parent
dabb3c902a
commit
a3799cb71e
2 changed files with 51 additions and 0 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
|
||||
void add_sys_file(String&&, Function<ByteBuffer(ProcFSInode&)>&& read_callback, Function<ssize_t(ProcFSInode&, const ByteBuffer&)>&& write_callback);
|
||||
void add_sys_bool(String&&, bool*, Function<void()>&& notify_callback = nullptr);
|
||||
void add_sys_string(String&&, Lockable<String>&, Function<void()>&& notify_callback = nullptr);
|
||||
|
||||
private:
|
||||
ProcFS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue