系统调用

go version 1.15.6

_Prunning_Psyscall
P的状态切换
Pexitsyscall()

进入系统调用

// Standard syscall entry used by the go syscall library and normal cgo calls.
//
// This is exported via linkname to assembly in the syscall package.
//
//go:nosplit
//go:linkname entersyscall
func entersyscall() {
	reentersyscall(getcallerpc(), getcallersp())
}
syscallcgoentersyscall()go:linkname

退出系统调用