mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Make ProcessTracer inherit from File.
This commit is contained in:
parent
7ec1f6ab3c
commit
e886337a67
12 changed files with 105 additions and 182 deletions
|
@ -13,17 +13,7 @@ Device::~Device()
|
|||
VFS::the().unregister_device(*this);
|
||||
}
|
||||
|
||||
KResultOr<Retained<FileDescriptor>> Device::open(int options)
|
||||
String Device::absolute_path() const
|
||||
{
|
||||
UNUSED_PARAM(options);
|
||||
return FileDescriptor::create(this);
|
||||
}
|
||||
|
||||
void Device::close()
|
||||
{
|
||||
}
|
||||
|
||||
int Device::ioctl(Process&, unsigned, unsigned)
|
||||
{
|
||||
return -ENOTTY;
|
||||
return String::format("device:%u,%u (%s)", m_major, m_minor, class_name());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue