mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Expose inode information in /proc/pid/fds
This commit is contained in:
parent
657409736a
commit
3582184d8c
Notes:
sideshowbarker
2024-07-18 01:25:26 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/3582184d8cf Pull-request: https://github.com/SerenityOS/serenity/pull/10830
1 changed files with 7 additions and 0 deletions
|
@ -198,6 +198,13 @@ KResult Process::procfs_get_fds_stats(KBufferBuilder& builder) const
|
|||
description_object.add("blocking", description->is_blocking());
|
||||
description_object.add("can_read", description->can_read());
|
||||
description_object.add("can_write", description->can_write());
|
||||
Inode* inode = description->inode();
|
||||
if (inode != nullptr) {
|
||||
auto inode_object = description_object.add_object("inode");
|
||||
inode_object.add("fsid", inode->fsid());
|
||||
inode_object.add("index", inode->index().value());
|
||||
inode_object.finish();
|
||||
}
|
||||
count++;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue