All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: UIO driver test
Date: Fri, 15 Apr 2016 18:37:13 -0700	[thread overview]
Message-ID: <20160416013713.GA11046@kroah.com> (raw)
In-Reply-To: <CAKJ7aR7w-fxF_bGfcmzhq7ERwT6RN5Lk7__=wL_eoVhdD10cLg@mail.gmail.com>

On Sat, Apr 16, 2016 at 07:03:37AM +0530, Gadre Nayan wrote:
> I am trying to replicate the igb_uio for realtek card on my system. I saw the
> igb_uio source and it uses no ID table.
> 
> Struct pci_driver igb_pci_driver = {
> ??? .id_table = NULL;
> };
> 
> So I wanted to understand the mechanism by which the igb_uio binds to a igb
> network card driver.

That does so in a very odd, and strange way and none that I would ever
recommend anyone else doing.  It's through userspace only, using the
bind/unbind sysfs files because their tool knows exactly when it is safe
to do it.

But this is not a UIO issue, it's just a PCI driver issue, very far away
from a platform device.

Also, don't try to bind UIO to a device that you don't know exactly how
it works, you will end up with "raw" memory access to the card, which
can cause bad things to happen if you aren't careful.

good luck!

greg k-h

  reply	other threads:[~2016-04-16  1:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15  8:29 UIO driver test Gadre Nayan
2016-04-15  8:45 ` anish singh
2016-04-15 10:01   ` Gadre Nayan
2016-04-15 13:59 ` Greg KH
2016-04-15 14:13   ` Gadre Nayan
2016-04-15 14:15     ` Gadre Nayan
2016-04-15 14:21       ` Greg KH
2016-04-16  1:33         ` Gadre Nayan
2016-04-16  1:37           ` Greg KH [this message]
2016-04-15 14:20     ` Greg KH
2016-04-15 17:36   ` Mandeep Sandhu
2016-04-16  5:13     ` Gadre Nayan

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=20160416013713.GA11046@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.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.