You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Harthann
changed the title
Create and clean syscalls interface
Create and clean existing syscalls interface
May 23, 2023
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:
And so the
sys_[syscall_name]
will be the kernel interface for this sycall, allowing kernel to use syscall and receive rust object properly.The text was updated successfully, but these errors were encountered: