All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt_Domsch@Dell.com
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] adding new network device driver
Date: Sat, 10 Nov 2001 02:51:30 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590698805463@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805461@msgid-missing>

> 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)!


  reply	other threads:[~2001-11-10  2:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-10  0:08 [Linux-ia64] adding new network device driver Gururaj Ananthateerta
2001-11-10  2:51 ` Matt_Domsch [this message]
2001-11-10  4:59 ` Keith Owens
2001-11-13  1:20 ` Gururaj Ananthateerta

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=marc-linux-ia64-105590698805463@msgid-missing \
    --to=matt_domsch@dell.com \
    --cc=linux-ia64@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.