Re: communication between userspace and kernelspace

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

 



thank you guys for your prompt replies. I am not able to map the
module name to the kernel src file. I looked in the build and
/lib/modules directories but could not find a direct mapping from the
src to the module file.

Plus the variable i want to change is the one that i have declared in
the source file. So first i need to figure out the module, the src
file finally compiles to and then how to export the new declared
variable such that it can be changed through /proc /sys.

Because of these limitations I am planning to go with the netlink
approach. Please suggest me any other way to solve this problem.
Thanks in advance.

~Niranjan.

On Fri, Apr 17, 2009 at 3:42 AM, Greg Freemyer <greg.freemyer@xxxxxxxxx> wrote:
> On Thu, Apr 16, 2009 at 1:56 AM, niranjan puram
> <puram.niranjan.kumar@xxxxxxxxx> wrote:
>> No heavy data transfer, I just want to set variables dynamically from
>> the user space. So i think declaring a kernel module parameter and
>> changing it through the /proc file system should solve the problem.
>> Also this is the first time I am programming in kernel :) so please
>> bear with me. Is there an exhaustive documentation as to how to do it?
>> Thanks in advance.
>
> /proc is now really only to be for per process type info.  I know
> there is lots of old stuff that is still per system.
>
> New per system variables are supposed to use sysfs  (ie. /sys)
>
> Greg
> --
> Greg Freemyer
> Head of EDD Tape Extraction and Processing team
> Litigation Triage Solutions Specialist
> http://www.linkedin.com/in/gregfreemyer
> First 99 Days Litigation White Paper -
> http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf
>
> The Norcross Group
> The Intersection of Evidence & Technology
> http://www.norcrossgroup.com
>

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