Re: Anyway to call syscall in kernel extension?
Re: Anyway to call syscall in kernel extension?
- Subject: Re: Anyway to call syscall in kernel extension?
- From: Mike Smith <email@hidden>
- Date: Fri, 10 Feb 2006 08:53:58 -0800
On Feb 10, 2006, at 2:33 AM, Lex Dejavu wrote:
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?
Kernel threads don't receive signals.
Another question, I found that sock_ioctl(...SIOCGIFCONF,...)
doesn't work in kernel because it always try to copy result to user
space.
That's because it's meant to be called from 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?
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden