Author Topic: Documentation for linux64 syscalls?  (Read 16850 times)

nobody

  • Guest
Documentation for linux64 syscalls?
« on: March 23, 2009, 04:24:33 AM »
I've been scouring the net trying to find the syscall documentation for the 64-bit linux kernels.  No luck so far.
I've found a list of them in /usr/include/asm/unistd_64.h, but the comments aren't very helpfull.

Anybody have a link for me?

Also, one more thing I've been unable to figure out, what's the difference between syscall (using nasm, of course) and int 80h?  Syscall works, but 80h segfaults.  I really need to find out what syscall is doing.

Thanks in advance,
eilenbeb

nobody

  • Guest
Re: Documentation for linux64 syscalls?
« Reply #1 on: March 23, 2009, 05:21:25 AM »
Ok.  Figured out the syscall thing.  Not supposed to do int 80h directly in linux64.

Now all I'm looking for is the docs on the syscall function codes.

Laters,
eilenbeb

nobody

  • Guest
Re: Documentation for linux64 syscalls?
« Reply #2 on: March 23, 2009, 10:23:20 AM »
I found what I was looking for.  Here goes:

The fuction names & numbers from /usr/include/asm/unistd_64.h.

The function descriptions are in manpages!  Do a 'man llseek', for instance.
The latest manpages can be downloaded from http://www.kernel.org/pub/linux/docs/manpages/ if for some reason someone doesn't have man2.
And of course the ABI is important.  I got mine from http://www.x86-64.org/documentation.html.

Laters,
eilenbeb

nobody

  • Guest
Re: Documentation for linux64 syscalls?
« Reply #3 on: March 23, 2009, 10:25:24 AM »
Oops.  the second link doesn't work because of the trailing dot.
http://www.x86-64.org/documentation.html

Laters
eilenbeb