On 7/11/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
Thanx for this information about userland helper.
I tried googleing about userland helper in kernel, but I didn't get any helpful information about it.
Can u just point me towards some examples or documentations about userland helpers, which will help me in understanding how they work
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Jul 11, 2007 at 10:22:32AM +0530, Pravin wrote:
> On 7/9/07, Rajat Jain <Rajat.Jain@xxxxxxxxxxxx> wrote:
>>
>> Hi Pravin,
>>
>> > ...
>> > I need to provide a hook from kernel-space to userspace.
>> > ...
>> > ...
>> > I am also looking for possibility for pausing the execution
>> > kernel thread till userspace function acknowlages the data
>> > and take certain action on it.
>> > ...
>>
>> This is not possible. And well, as others may advice, not at all logical.
>> If you really need access to kernel data-structures and you feel your code
>> needs to be called in middle of some kernel code path, a better decision
>> might be to include your code in the kernel space itself.
>>
>> Sitting in the userspace, the closest you can get to it is using
>> call_usermodehelper() that allows you call a userspace binary.
>
>
> Thanx for info
> I will re-considar my decision about putting my code in userspace.
> I was facing some problems to do my work from kernel space.
> my code need to take some decision based on some policy file,
> and reading policies from a file.
> This is the reason I am not comfortable in putting my code in kernel.
> as reading file from kernel space is little tedious thing, and even thats
> not
> recemended. thats y i am confused about how to tackle this problem.
The usual solution to this problem is to have a small userland helper
that reads the policy file and feed it to the kernel through a device
node.
Thanx for this information about userland helper.
I tried googleing about userland helper in kernel, but I didn't get any helpful information about it.
Can u just point me towards some examples or documentations about userland helpers, which will help me in understanding how they work
Erik
- --
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGlI0X/PlVHJtIto0RAsP2AJ0RHg3O7qvUN8l/Pg0C3ot6lRfhSgCbBaQw
RZ4Uomsh6HUjA3f6EJl3v7w=
=aMF6
-----END PGP SIGNATURE-----
--
Pravin Shinde