public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] adding new network device driver
@ 2001-11-10  0:08 Gururaj Ananthateerta
  2001-11-10  2:51 ` Matt_Domsch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gururaj Ananthateerta @ 2001-11-10  0:08 UTC (permalink / raw)
  To: linux-ia64

I have written a driver for a netwok deive. I want to add it in the kernel.
I have compiled the code with 2.4.0 patched with the latest patch. The new
kernel (my_kernel) contains my driver symbols. 

When I boot with new kernel my driver probe routine is not entered. 
Is there anyplace I need to inform the kernel about the existence 
of the new driver.

THis is on ia64 on RH7.1 and whole thing is on Lion.

Thanks
Guru



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

* RE: [Linux-ia64] adding new network device driver
  2001-11-10  0:08 [Linux-ia64] adding new network device driver Gururaj Ananthateerta
@ 2001-11-10  2:51 ` Matt_Domsch
  2001-11-10  4:59 ` Keith Owens
  2001-11-13  1:20 ` Gururaj Ananthateerta
  2 siblings, 0 replies; 4+ messages in thread
From: Matt_Domsch @ 2001-11-10  2:51 UTC (permalink / raw)
  To: linux-ia64

> When I boot with new kernel my driver probe routine is not entered. 
> Is there anyplace I need to inform the kernel about the existence 
> of the new driver.

If it's a module, you simply mark your init function with __init, like so:

int __init my_driver_init(void)
{
	...
}

And then if it can be built as a module, put
module_init(my_driver_init);

at the end.  See most of the networking drivers for how they do this.

Then, at kernel build time, if your driver is built into the kernel
(CONFIG_XXXX=Y), it gets its initialization routine called during the kernel
startup.  If it's a module, it gets called when you insmod your driver.

Of course, all of this isn't specific to IA-64, so this probably isn't the
right list.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions
www.dell.com/linux
#2 Linux Server provider with 17% in the US and 14% Worldwide (IDC)!
#3 Unix provider with 18% in the US (Dataquest)!


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

* Re: [Linux-ia64] adding new network device driver
  2001-11-10  0:08 [Linux-ia64] adding new network device driver Gururaj Ananthateerta
  2001-11-10  2:51 ` Matt_Domsch
@ 2001-11-10  4:59 ` Keith Owens
  2001-11-13  1:20 ` Gururaj Ananthateerta
  2 siblings, 0 replies; 4+ messages in thread
From: Keith Owens @ 2001-11-10  4:59 UTC (permalink / raw)
  To: linux-ia64

On Fri, 9 Nov 2001 16:08:06 -0800 (PST), 
Gururaj Ananthateerta <gururaj@cup.hp.com> wrote:
>When I boot with new kernel my driver probe routine is not entered. 
>Is there anyplace I need to inform the kernel about the existence 
>of the new driver.

linux/Documentation/DocBook/kernel-hacking.tmpl, __initcall and friends.



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

* Re: [Linux-ia64] adding new network device driver
  2001-11-10  0:08 [Linux-ia64] adding new network device driver Gururaj Ananthateerta
  2001-11-10  2:51 ` Matt_Domsch
  2001-11-10  4:59 ` Keith Owens
@ 2001-11-13  1:20 ` Gururaj Ananthateerta
  2 siblings, 0 replies; 4+ messages in thread
From: Gururaj Ananthateerta @ 2001-11-13  1:20 UTC (permalink / raw)
  To: linux-ia64

Updated Space.c and compiled the kernel. 
The proble is called and my device is identified and configured. But there
is some problem.
There are 2 ethernet devices (including mine) 1 is Intel EEpro100 and
mine (gigabit controller). When the kernel boots it recognizes my NIC and
EEpro100 NIC and hangs. I am unable to figure out whats going on. 
There is some confusions with  ehto and eth1 that I am unable to follow.

> On Fri, 9 Nov 2001 16:08:06 -0800 (PST), 
> Gururaj Ananthateerta <gururaj@cup.hp.com> wrote:
> >When I boot with new kernel my driver probe routine is not entered. 
> >Is there anyplace I need to inform the kernel about the existence 
> >of the new driver.
> 
> linux/Documentation/DocBook/kernel-hacking.tmpl, __initcall and friends.
> 
> 



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

end of thread, other threads:[~2001-11-13  1:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-10  0:08 [Linux-ia64] adding new network device driver Gururaj Ananthateerta
2001-11-10  2:51 ` Matt_Domsch
2001-11-10  4:59 ` Keith Owens
2001-11-13  1:20 ` Gururaj Ananthateerta

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