[lkml]   [2003]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: driver address space

On Tue, 28 Jan 2003 Richard B. Johnson wrote :
>On 28 Jan 2003, nitin kumbhar wrote:
> > Hello,
> > I have a small query about kernel image organization. i am
> > using
> > 2.4.7 kernel version.Is there any data structure in kernel
> > will give
> > information about _all_ kernel symbols? i could get the data
> > structure
> > which gives _exported_ symbols only. But not all symbols.
> > this
> > structure i want to access information about functions present
> > a driver,
> > which can be used to find out address range(_start_address_
> > _end_address_) of the driver in kernel address space.
> > It is possible to get this information about functions in
> > driver
> > using to get this information into kernel can we
> > the
> > content of this file into kernel image? i think this can be
> > either by
> > putting it at specific address or appending the image. Will it
> > OK to
> > access kernel symbols) in this way from
> > Could
> > this cause any security or some other problems?
> > Or apart from this is there any other way to find out
> > address range in the kernel?
> >
> > I hope this not something totally out of context. Thank
> >
> > Regards,
> > Nitin
> >
>Since it's dynamic, i.e., the addresses depends upon other
>drivers/modules being loaded before yours, you just make an
>that returns anything you want, including the virtual or even
>address of anything in your driver.

hi Richard,

You are true if the driver is a module. But i think the same case
is not with
drivers present in the kernel image(when built with kernel). The
in the kernel address space where the drivers are loaded is fixed.
it can
change only if you recompile the kernel. correct me if i am going

About ioctl, ioctls can return the required values from the
driver. But if the
driver is present in the kernel (not as a module) where to find
return values(in this case start & end addresses of the driver).
Here i am
not getting the place or method to find the addresses.

it will be very helpful if someone could push me forward in
correct direction.

Thank You.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.024 / U:4.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site