Re: insmod: unresolved symbol sys_shmat

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

 



On Mon, Nov 24, 2003 at 06:16:19PM +0100, Juergen Oberhofer wrote:
|OK. I've written a module which installs a interrupt handler
|(the interrupt is a timer interrupt, generated by a cpm timer on
|a mpc823 board), i.e. every x microseconds the module executes a
|handling function.
|The handling function should read/write from/to a shared memory
|which can be accessed from a program that runs in user mode.

The right solution is to provide a chardev whose file operations
includes a "mmap" method.
Doing so your user space process can "mmap" all the memory your
device driver want to supply.


|To synch. the access to the shm I wanted to use semaphores...

to synch you can use the "fcntl" or "poll" interface from the same file operations
struct (the same that supply mmap)


-- 

Daniele.




"I could have made money this way, and perhaps amused myself writing code. 
But I knew that at the end of my career, I would look back on years of 
building walls to divide people, and feel I had spent my life making the 
world a worse place."                               
                                                          Richard Stallman



--
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