Pass the process to CharacterDevice::read/write.

This is much nicer than grabbing directly at 'current' inside a read().
This commit is contained in:
Andreas Kling 2019-01-16 00:20:38 +01:00
commit bd3e77cc16
Notes: sideshowbarker 2024-07-19 16:01:51 +09:00
27 changed files with 63 additions and 62 deletions

View file

@ -128,7 +128,7 @@ void load_ksyms()
if (!descriptor) {
kprintf("Failed to open /kernel.map\n");
} else {
auto buffer = descriptor->read_entire_file();
auto buffer = descriptor->read_entire_file(*current);
ASSERT(buffer);
load_ksyms_from_data(buffer);
}