mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 09:55:07 +00:00
Kernel: Make /proc/PID/fds display something useful for character devices.
This commit is contained in:
parent
786b903d62
commit
e6fc84e234
14 changed files with 46 additions and 6 deletions
|
@ -297,6 +297,11 @@ String FileDescriptor::absolute_path()
|
|||
ksprintf(buf, "fifo:%x", m_fifo.ptr());
|
||||
return buf;
|
||||
}
|
||||
if (is_character_device()) {
|
||||
char buf[128];
|
||||
ksprintf(buf, "device:%u,%u (%s)", m_device->major(), m_device->minor(), m_device->class_name());
|
||||
return buf;
|
||||
}
|
||||
ASSERT(m_inode);
|
||||
return VFS::the().absolute_path(*m_inode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue