Posixcafe Who's asking

NTSTATUS __attribute__((naked))
NtAllocateVirtualMemory10(HANDLE ProcessHandle, PVOID *BaseAddress, ULONG_PTR ZeroBits, PSIZE_T RegionSize, ULONG AllocationType, ULONG protect)
	asm volatile (	"mov %rcx, %r10;"
			"mov $0x18, %eax;"

Here the naked attribute allows us to treat the function as a pure assembly function by having gcc abstain from doing any function preample shuffling of the stack or otherwise when we call this function. In this example we have 0x18 set as our syscall number, which is the NtAllocateVirtualMemory syscall index for the latest version of windows 10 at the time of this writing.