from Hacker News

Guide to Linux System Calls (2016)

by crunchbang123 on 6/28/20, 11:56 AM with 35 comments

  • by saagarjha on 6/28/20, 4:23 PM

    > Calling system calls by crafting your own assembly is generally a bad idea as the ABI may break underneath you.

    syscall should have a stable ABI at the very least, because this would otherwise break all statically linked code.

  • by _y5hn on 6/28/20, 3:18 PM

    I guess not many actually need to call linux kernel system calls directly bypassing proper measures, but how many fondly remembers int 21h?
  • by krackers on 6/28/20, 10:10 PM

  • by jkingsbery on 6/29/20, 3:08 AM

    In grad school for Operating Systems class, one of our assignments was adding a system call to the linux kernel. I found that a useful exercise - both doable in a reasonable amount of time and also a way to learn a lot.
  • by andrepd on 6/29/20, 1:49 AM

    18pt text, gray, thin.

    Why?