From: Arnd Bergmann <arnd@arndb.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ioctl32_unregister_conversion & modules
Date: Fri, 9 May 2003 21:30:33 +0200 [thread overview]
Message-ID: <200305092130.33274.arnd@arndb.de> (raw)
In-Reply-To: <20030509152436.GA762@elf.ucw.cz>
On Friday 09 May 2003 17:24, Pavel Machek wrote:
> Fixing that would require resgister_ioctl32_conversion() to have 3-rd
> parameter "this module" and some magic inside fs/compat_ioctl.c,
> right?
The code that is currently using register_ioctl32_conversion() does
not have to be changed if we use
extern int
__register_ioctl_conversion(int, ioctl_trans_handler_t, struct module*);
static inline int
register_ioctl_conversion(int cmd, ioctl_trans_handler_t h)
{
return __register_ioctl_conversion(cmd, h, THIS_MODULE);
}
/* maybe also: */
static inline int
register_compatible_ioctl(int cmd)
{
return __register_ioctl_conversion(cmd, NULL, NULL);
}
register_compatible_ioctl() is not strictly needed, but it will avoid
doing the unnecessary try_module_get() when there is no handler.
Arnd <><
next prev parent reply other threads:[~2003-05-09 19:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030509100039$6904@gated-at.bofh.it>
2003-05-09 12:10 ` ioctl32_unregister_conversion & modules Arnd Bergmann
2003-05-09 15:24 ` Pavel Machek
2003-05-09 16:13 ` David S. Miller
2003-05-09 17:11 ` Pavel Machek
2003-05-09 17:16 ` David S. Miller
2003-05-09 19:30 ` Arnd Bergmann [this message]
2003-05-09 9:32 Pavel Machek
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=200305092130.33274.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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