mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Add proper locking to SynthFS and stop disabling interrupts.
This commit is contained in:
parent
b5e5541cbc
commit
4df92709c8
3 changed files with 12 additions and 4 deletions
|
@ -59,13 +59,11 @@ RetainPtr<SynthFSInode> DevPtsFS::create_slave_pty_device_file(unsigned index)
|
|||
|
||||
void DevPtsFS::register_slave_pty(SlavePTY& slave_pty)
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
auto inode_id = add_file(create_slave_pty_device_file(slave_pty.index()));
|
||||
slave_pty.set_devpts_inode_id(inode_id);
|
||||
}
|
||||
|
||||
void DevPtsFS::unregister_slave_pty(SlavePTY& slave_pty)
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
remove_file(slave_pty.devpts_inode_id().index());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue