1
Fork 0
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:
Andreas Kling 2019-02-08 09:46:46 +01:00
parent dabb3c902a
commit a3799cb71e
2 changed files with 51 additions and 0 deletions

View file

@ -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();