Re: Calling system call from User-mode Linux?

From: Jeff Dike
Date: Sat Jul 10 2010 - 22:15:38 EST


On Sat, Jul 10, 2010 at 05:55:48PM -0400, Philip Wernersbach wrote:
> I'm trying to add some functionality to User-mode Linux that requires
> the UML kernel to call a custom syscall I've added to the host kernel.
> This should be technically possible since UML runs in the userspace,
> but I can't figure out how to call the syscall, as the syscall()
> function isn't defined in UML. Are there other ways I can accomplish
> this?

Add a function in the userspace side of UML (arch/um/os-Linux) which
invokes your new system call through syscall(), and then call that
from wherever you need to.

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