4 ms·
Well for starters WSL implements Linux system calls, so it definitely has its own system calls! But even beyond that, I was thinking of one thing they added fo
by mehrdadn 7y ago
Well for starters WSL implements Linux system calls, so it definitely has its own system calls!
But even beyond that, I was thinking of one thing they added for performance reasons (see 3rd bullet): https://github.com/Microsoft/WSL/issues/873#issuecomment-425272829 https://github.com/Microsoft/WSL/issues/873#issuecomment-425...
However I'm not entirely sure if it's a concrete "syscall" or if it's implemented as a new option through an existing one. (It's not clear to me how they could reasonably fit this into anything that already exists, but it might.) Though I would be mildly surprised if they didn't implement at least one syscall specifically for WSL...
- monocasa 7y ago> Well for starters WSL implements Linux system calls, so it definitely has its own system calls! Sure, but not in the NT system call table. > But even beyond that, I was thinking of one thing they added for performance reasons (see 3rd bullet): https://github.com/Microsoft/WSL/issues/873#issuecomment-425.. https://github.com/Microsoft/WSL/issues/873#issuecomment-425.... > However I'm not entirely sure if it's a concrete "syscall" or if it's implemented as a new option through an existing one. (It's not clear to me how they could reasonably fit this into anything that already exists, but it might.) Though I would be mildly surprised if they didn't implement at least one syscall specifically for WSL... It's neither, it's an API inside kernel space. They didn't expose it through the NT syscall table, but instead how the linux transtalion layer calls directly into NT kernel functions.
- mehrdadn 7y agoAh I see, okay thanks.
- zaszrespawned 7y agohttps://devblogs.microsoft.com/commandline/announcing-wsl-2/ https://devblogs.microsoft.com/commandline/announcing-wsl-2/ WSL is now a VM. So its really hypervisor that runs the linux syscalls on its virtual processor
- mehrdadn 7y agoI'm aware of WSL2 but we've been talking about WSL1.