information between kernel and device driver

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

 



Hi there,

3rd stage of my fight with the kernel.

Problem: I have a char device which has to use information of a kernel variable (created for me) called bitmapped, this variable has to be used by the kernel to get information from user, I have thought about defining this variable in a header file for including it in the kernel, but...if my driver has to use it, can I define this variable in the code of my driver as extern if it's only defined at memory.c, for example?

Which is the best way for defining this variable at the kernel and use it from either the kernel or the user?

_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH



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