Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create and clean existing syscalls interface #93

Open
Harthann opened this issue May 23, 2023 · 0 comments
Open

Create and clean existing syscalls interface #93

Harthann opened this issue May 23, 2023 · 0 comments

Comments

@Harthann
Copy link
Owner

Not all syscalls are currently callable from userspace due to improper user interface. And not all syscalls follow the same rules which is not ideal.
I think syscalls should follow the following pattern:

[syscall_name](params....) {
    // transfer userspace param into kernel space
    // call to real syscall (sys_[syscall_name] )
    // transform returned rust object into it's raw components to transfer into userspace
    // transfer data back to userspace
    // return
}

And so the sys_[syscall_name] will be the kernel interface for this sycall, allowing kernel to use syscall and receive rust object properly.

@Harthann Harthann changed the title Create and clean syscalls interface Create and clean existing syscalls interface May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant