Re: Sending signals to user space program from kernel space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 3, 2009 at 6:59 AM, Pei Lin <telent997@xxxxxxxxx> wrote:
> why not use copy_from_user and copy_to_user?
>

DIdn't understand what you meant, but the question is regarding a
signal not data?
Am I missing something ???

> 2009/2/1 Sandeep K Sinha <sandeepksinha@xxxxxxxxx>:
>> Write a daemon in userspace which runs in background and continuously
>> send ioctl's to your driver and gets the value of i.
>> If the value of i becomes even, you can write your desired code.
>>
>> Is this what you wanted ?
>>
>> On Sat, Jan 31, 2009 at 2:53 PM, rishi agrawal <postrishi@xxxxxxxxx> wrote:
>>> Hello Everyone,
>>>
>>> I have a char device which when gets ioctl  case 'a' starts a for loop with
>>> index ' i '.
>>>
>>> I want to send the value of index ' i ' to user space whenever ' i ' is
>>> even.
>>>
>>> I want some thing like the kernel space code of char device should send a
>>> variable and also a 'signal' that it has send a value.
>>>
>>> How can it be done ?
>>>
>>> Its something like Pipes
>>>
>>> --
>>> Regards,
>>> Rishi B. Agrawal
>>>
>>>
>>
>>
>>
>> --
>> Regards,
>> Sandeep.
>>
>>
>>
>>
>>
>>
>> "To learn is to change. Education is a process that changes the learner."
>>
>> --
>> To unsubscribe from this list: send an email with
>> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
>> Please read the FAQ at http://kernelnewbies.org/FAQ
>>
>>
>



-- 
Regards,
Sandeep.





 	
"To learn is to change. Education is a process that changes the learner."

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux