public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Testing to see if a driver is loaded
@ 2010-06-13  4:33 Robert Emanuele
       [not found] ` <AANLkTik-xhwWwE0YXgkeETPtZZH5ze-_wt-9gOy2fBoq@mail.gmail.com>
  2010-06-14 23:53 ` Robert Hancock
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Emanuele @ 2010-06-13  4:33 UTC (permalink / raw)
  To: linux-kernel

Greetings once again,

I was wondering if there is a simple way to test if a driver is loaded
from within another driver's probe?  I have one driver that depends on
another.  I see several *_find_device functions in
include/linux/device.h.  I haven't found a "find driver" nor an
arbitrary way of doing that.

Thanks for any guidance,

Rob

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Testing to see if a driver is loaded
       [not found] ` <AANLkTik-xhwWwE0YXgkeETPtZZH5ze-_wt-9gOy2fBoq@mail.gmail.com>
@ 2010-06-14 19:04   ` Robert Emanuele
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Emanuele @ 2010-06-14 19:04 UTC (permalink / raw)
  To: Raj singh; +Cc: linux-kernel

Hi Raj,

I appreciate the thought, but if you read my email closely you'll see
that I was looking for how to find if a driver is loaded into the
kernel (module or not) from within another driver's probe function.

--Rob

On Sun, Jun 13, 2010 at 11:48 PM, Raj singh <linux.rajsingh@gmail.com> wrote:
> Hi ,
>         You can use lsmod command...
>
> login as root & type lsmod | head -10...it will show you a list of drivers
> currently loaded in your kernel....
>
>
> Raj.
>
> On Sun, Jun 13, 2010 at 10:03 AM, Robert Emanuele <rob@emanuele.us> wrote:
>>
>> Greetings once again,
>>
>> I was wondering if there is a simple way to test if a driver is loaded
>> from within another driver's probe?  I have one driver that depends on
>> another.  I see several *_find_device functions in
>> include/linux/device.h.  I haven't found a "find driver" nor an
>> arbitrary way of doing that.
>>
>> Thanks for any guidance,
>>
>> Rob
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Testing to see if a driver is loaded
  2010-06-13  4:33 Testing to see if a driver is loaded Robert Emanuele
       [not found] ` <AANLkTik-xhwWwE0YXgkeETPtZZH5ze-_wt-9gOy2fBoq@mail.gmail.com>
@ 2010-06-14 23:53 ` Robert Hancock
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Hancock @ 2010-06-14 23:53 UTC (permalink / raw)
  To: Robert Emanuele; +Cc: linux-kernel

On 06/12/2010 10:33 PM, Robert Emanuele wrote:
> Greetings once again,
>
> I was wondering if there is a simple way to test if a driver is loaded
> from within another driver's probe?  I have one driver that depends on
> another.  I see several *_find_device functions in
> include/linux/device.h.  I haven't found a "find driver" nor an
> arbitrary way of doing that.
>
> Thanks for any guidance,

There's not a simple answer, it depends what you are trying to achieve 
(i.e. in what way is the driver dependent on the other one..)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-14 23:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-13  4:33 Testing to see if a driver is loaded Robert Emanuele
     [not found] ` <AANLkTik-xhwWwE0YXgkeETPtZZH5ze-_wt-9gOy2fBoq@mail.gmail.com>
2010-06-14 19:04   ` Robert Emanuele
2010-06-14 23:53 ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox