Re: Anyway to call syscall in kernel extension?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Feb 10, 2006, at 2:33 AM, Lex Dejavu wrote: Kernel threads don't receive signals. That's because it's meant to be called from user space. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I want to change signal mask of a kernel thread (in kext) but find no way, though it's easy to do in user space by syscall pthread_sigmask(). If we can't call syscall in kernel, is there any other way to change signal mask for a kernel thread? Another question, I found that sock_ioctl(...SIOCGIFCONF,...) doesn't work in kernel because it always try to copy result to user space. It sounds like you are writing code that should not be in the kernel at all. Perhaps you should consider moving it to user space? This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Smith