complicated inline assembly

Mehta, Hiren (Hiren.Mehta@VLSI.com)
Mon, 23 Aug 1999 17:17:59 -0700


Can anybody explain the following complicated assembly that I found
include/asm-i386/unistd.h file ?

#define _syscall0(type,name) \
type name(void) \
{ \
long __res; \
__asm__ volatile ("int $0x80" \
: "=a" (__res) \
: "0" (__NR_##name)); \
if (__res >= 0) \
return (type) __res; \
errno = -__res; \
return -1; \
}

Thanks
-hiren

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/