mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Ashok Raj <ashokr2@attbi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: linux PCI hotplug
Date: Sat, 30 Mar 2002 08:22:43 -0800	[thread overview]
Message-ID: <20020330162243.GA17719@kroah.com> (raw)
In-Reply-To: <20020325.234400.03241011.davem@redhat.com> <PPENJLMFIMGBGDDHEPBBAEGGCMAA.ashokr2@attbi.com>

On Sat, Mar 30, 2002 at 06:09:56AM -0800, Ashok Raj wrote:
> Hello.
> 
> I have a question on pci hotplug capability.
> 
> when a new device is inserted, the hotplug driver enumerates pci, and if the
> driver is already loaded....
> 
> for each new device
> 	pci_insert->pci_announce->pci_probe
> 
> if i need to remove a device, the pci_remove would be called, but it does
> not call to check if the device is ready for removal. If there are other
> apps working on this device, how would the hotplug removal be authenticated
> before removal?

What function can the pci_hotplug core call to "check"?

> pci_remove() has no return value, means it cannot fail....

This is correct.  If the user asks for the device to be powered down, it
will be powered down, even if the driver attached to that device is busy
doing something.

For 2.5, this will probably change, as we will have the option to ask
the driver if it's ok to shutdown (better power management hooks.)

thanks,

greg k-h

  reply	other threads:[~2002-03-30 16:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-26  7:45 version.h missing from 2.4.18? Ashok Raj
2002-03-26  7:44 ` David S. Miller
2002-03-26 10:17   ` Ashok Raj
2002-03-26 21:52     ` Mike Castle
2002-03-30 14:09   ` linux PCI hotplug Ashok Raj
2002-03-30 16:22     ` Greg KH [this message]
2002-03-26 10:09 ` version.h missing from 2.4.18? Ashok Raj

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=20020330162243.GA17719@kroah.com \
    --to=greg@kroah.com \
    --cc=ashokr2@attbi.com \
    --cc=linux-kernel@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 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®