Re: Storing Data in the kernel

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

 



On Wednesday 26 June 2002 02:47 pm, John Tyner wrote:
> > would like to store that address in memory somehow so that each
> > time a packet is sent through my custom target I can use that base
> > address in the target() function instead of having to re-discover
> > the address every time the function is called.
>
> Why can't you do:
>
> void *foo_base;
>
> void init_module( void ) {
> 	foo_base = find_foo_device();
> }
>

That seems to be just what I was looking for! 

Thanks,

	-Jeremy

-- 
------------------
Jeremy C. Andrus
http://www.jeremya.com/
------------------
--
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