mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Make device generate their own names
Besides removing the monolithic DevFSDeviceInode::determine_name() method, being able to determine a device's name inside the /dev hierarchy outside of DevFS has its uses.
This commit is contained in:
parent
a2601e1308
commit
f64e287b82
Notes:
sideshowbarker
2024-07-18 22:57:36 +09:00
Author: https://github.com/boricj
Commit: f64e287b82
Pull-request: https://github.com/SerenityOS/serenity/pull/5028
Reviewed-by: https://github.com/awesomekling
29 changed files with 76 additions and 69 deletions
|
@ -106,6 +106,11 @@ KResult SlavePTY::close()
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
String SlavePTY::device_name() const
|
||||
{
|
||||
return String::formatted("{}", minor());
|
||||
}
|
||||
|
||||
FileBlockCondition& SlavePTY::block_condition()
|
||||
{
|
||||
return m_master->block_condition();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue