nuta / kerla

A new operating system kernel with Linux binary compatibility written in Rust.
Other
3.35k stars 87 forks source link

[Closes #106] Hold `Arc<SpinLock<OpenedFileTable>>` instead of just `SpinLock<>` #157

Closed michalfita closed 2 years ago

michalfita commented 2 years ago

Description

Part of preparation to support the whole clone3() syscall. This change allows threads to keep access to the shared table of opened files (in #88 and #115), but for now it retains just cloning the table into new Arc<SpinLock<>> on fork().

Pre-Submission Checklist

When you submit a PR, please make sure your PR satisfies the following checklist:

nuta commented 2 years ago

Merged. Thanks!