From: Michael Hunold <hunold@convergence.de>
To: linux-kernel@vger.kernel.org
Subject: [RFC][2.5] generic_usercopy() function
Date: Fri, 23 May 2003 11:32:07 +0200 [thread overview]
Message-ID: <3ECDEA97.8070004@convergence.de> (raw)
Hello all,
especially the Video4Linux-driver rely intensively on the
video_usercopy() function, which handles the copying of userspace
arguments of ioctls with a simply callback mechanism.
Recently the dvb-core has been added which needs the same function.
Because of the fact that the core is independent of Video4Linux, the
code was duplicated to a dvb_usercopy() function.
In order to prevent this code duplication, introducing a
generic_usercopy() function to lib/ is one possibilty.
The appended 4 patches do the following:
01-introduce.diff:
- remove video_usercopy() from videodev.c
- add generic_usercopy() to "lib/usecopy.c" and update the build system
02-video.diff:
- change all users of video_usercopy() to use generic_usercopy() instead
03-radio.diff:
- change all users of video_usercopy() to use generic_usercopy() instead
04-dvb.diff
- remove dvb_usercopy() from the dvb core and fix it to use
generic_usercopy() instead.
The diffs are against 2.5.69.
Comments are very appreciated. 8-)
Is there a possibility to get this into the kernel?
CU
Michael.
reply other threads:[~2003-05-23 9:19 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=3ECDEA97.8070004@convergence.de \
--to=hunold@convergence.de \
--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