Re: how to map it in linux

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

 



Nilanjan Roychowdhury wrote:
I have a simple driver in Vxworks ( lets say in a flat memory RTOS)
What I do is whenever my ISR detects any H/W intr it posts a message to a task T1. T 1 does the processing and then notifies the application task T2.

How do I do the same in linux?? Is it possible at all.
Regards
Nilanjan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


Sure it's possible.
Read the book Writing Linux Device Drivers at http://www.xml.com/ldd/chapter/book/ to learn. The message queue communication is made the IPC Messages. But the problem is that the ISR work in kernel mode and I think that the kernel and a process can't share a same IPC Message queue. Implement it with signals, it would be better i guess. If u don't want, try the functions get_from_user() or copy_from_user().


Ciao :)


-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: 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