Reputation: 75555
I am trying to trace down how syscalls work in Go, but I got stuck here.
The code is invoking syscall.Entersyscall
, but I cannot find the definition for the Entersyscall
function in the syscall
package anywhere in the source tree.
Is there some magic that renames this to something else?
More generally, how does one go about finding definitions for function names (in the Go source tree) that have no apparent definition in their advertised package?
Upvotes: 2
Views: 287
Reputation:
You cannot find it in the stdlib because it contains just a wrapper function syscall.Entersyscall()
. The proper implementation is in the same package but written in asm golang.org/src/syscall/asm_linux_arm.s
Upvotes: 1