mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "nitin  kumbhar" <nkumbhar@rediffmail.com>
To: "Richard B.Johnson" <root@chaos.analogic.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: driver address space
Date: 29 Jan 2003 08:05:26 -0000	[thread overview]
Message-ID: <20030129080526.25423.qmail@webmail10.rediffmail.com> (raw)


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 
>which
> > will give
> > information about _all_ kernel symbols? i could get the data
> > structure
> > which gives _exported_ symbols only. But not all symbols. 
>Using
> > this
> > structure i want to access information about functions present 
>in
> > 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 
>a
> > driver
> > using System.map. to get this information into kernel can we 
>push
> > the
> > content of this file into kernel image? i think this can be 
>done
> > either by
> > putting it at specific address or appending the image. Will it 
>be
> > OK to
> > access System.map(all kernel symbols) in this way from 
>kernel?
> > Could
> > this cause any security or some other problems?
> >   Or apart from this is there any other way to find out 
>driver's
> > address range in the kernel?
> >
> >   I hope this not something totally out of context. Thank 
>You.
> >
> > Regards,
> > Nitin
> >
>
>Since it's dynamic, i.e., the addresses depends upon other
>drivers/modules being loaded before yours, you just make an 
>ioctl()
>that returns anything you want, including the virtual or even 
>physical
>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 
position
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 
wrong
somewhere.

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

Regards,
Nitin




             reply	other threads:[~2003-01-29  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29  8:05 nitin  kumbhar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-28 14:06 nitin  kumbhar
2003-01-28 14:27 ` Richard B. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030129080526.25423.qmail@webmail10.rediffmail.com \
    --to=nkumbhar@rediffmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®