mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 12:37:35 +00:00
Pass the process to CharacterDevice::read/write.
This is much nicer than grabbing directly at 'current' inside a read().
This commit is contained in:
parent
08bfe518f9
commit
bd3e77cc16
27 changed files with 63 additions and 62 deletions
|
@ -121,12 +121,12 @@ bool PS2MouseDevice::can_read(Process&) const
|
|||
return !m_buffer.is_empty();
|
||||
}
|
||||
|
||||
ssize_t PS2MouseDevice::read(byte* buffer, size_t size)
|
||||
ssize_t PS2MouseDevice::read(Process&, byte* buffer, size_t size)
|
||||
{
|
||||
return m_buffer.read(buffer, size);
|
||||
}
|
||||
|
||||
ssize_t PS2MouseDevice::write(const byte*, size_t)
|
||||
ssize_t PS2MouseDevice::write(Process&, const byte*, size_t)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue