From: Kaiwan N Billimoria <kaiwan@designergraphix.com>
To: linux-kernel@vger.kernel.org
Cc: Tim Waugh <tim@cyberelk.demon.co.uk>, Philip Blundell <philb@gnu.org>
Subject: parport: small addition to Documentation/parport-lowlevel.txt
Date: Fri, 21 Jul 2006 18:55:04 +0530 [thread overview]
Message-ID: <44C0D5B0.4000008@designergraphix.com> (raw)
A small note inserted, regarding usage of the parport_unregister_driver
interface.
Only a single file Documentation/parport-lowlevel.txt is affected
(pulled from 2.6.18-rc2 :
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;h=8f2302415eff90b0df7aa655f132f9567ff9ccd7;hb=82d6897fefca6206bca7153805b4c5359ce97fc4;f=Documentation/parport-lowlevel.txt
)
Came across this "issue" while writing a parport-based driver.
Does this make sense?
- Kaiwan.
---
--- parport-lowlevel.vanilla 2006-07-21 18:25:24.000000000 +0530
+++ parport-lowlevel 2006-07-21 18:34:52.000000000 +0530
@@ -258,6 +258,18 @@
...
}
+Note-
+If you are using this interface in the "usual" way, you are probably first
+registering your driver with parport_register_driver and unregistering with
+parport_unregister_driver (as shown in the "lp_driver" example about a page
+up from here). You will have attach and detach function callbacks.
+The point is: when your driver is removed from the kernel, your
+cleanup_module function is invoked, which typically invokes
+parport_unregister_driver. This will cause the detach function to kick in.
+Now, this guy should _not_ be (re)invoking parport_unregister_driver, but
+just parport_unregister_device as necessary.
+
+
SEE ALSO
parport_register_driver, parport_enumerate
reply other threads:[~2006-07-21 13:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=44C0D5B0.4000008@designergraphix.com \
--to=kaiwan@designergraphix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=philb@gnu.org \
--cc=tim@cyberelk.demon.co.uk \
/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