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: Lex Dejavu <email@hidden>
- Date: Mon, 13 Feb 2006 22:40:51 -0800 (PST)
Thanks for help, but I still think if sock_ioctl(...SIOCGIFCONF,...) is an exported KPI, it should work as it's supposed to be. Anyway, user wants to get available network interface name in kernel kextension is not unreasonable.
Mike Smith <email@hidden> wrote:
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
Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.
_______________________________________________
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