[PATCH] devfs support for raw char device, kernel 2.4.9

Gordon Tyler (gordon@doxxx.net)
Sun, 23 Sep 2001 13:17:39 -0400


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I'm not subscribed to the linux-kernel list so please CC me on any replies.

This is a patch to kernel 2.4.9 for adding devfs support to the raw char device
(drivers/char/raw.c). It registers the rawctl device, the raw subdirectory and
a configurable (max_raw kernel param) number of raw/rawX devices. I've done
some basic empirical testing on my changes and it seems to be working okay. I
haven't tested it for compatibility with a non-devfs system since I don't have
one.

There are two further modifications I would like to make. First, make it a
module so that it can be loaded at runtime and thus configured at runtime
without having to add a kernel parameter to LILO or whatever. Second, change
the control interface to kernel functions (ala loopback device) rather than
ioctl on a control device which seems a bit grungy to me. This second change
would require changing the userspace configuration utility as well and is not
as "trivial" as the first.

Ciao,
Gordon

--HcAYCG3uE/tztfnV
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="raw_devfs_patch.tar.gz"
Content-Transfer-Encoding: base64

H4sIAKYTrjsAA+1XbU/jRhDma/IrRqm4c7Dj2A4OlAAiPQLlyksVoJx0PVmOvSF7+CXy2hBa
+O+d3bVDSODgKtGqqh9FxNmdmZ3XZ02/19096i29KQzTMNqrq0uGYZhrtjH7LWDarSVjrWW3
Vk2j1VpDebNl2EtgvK1bEhlL3QRg6TJO/Dh6Xu6l/f8ofnVTbwRpDK7vg0+uhwxYNh7HScoX
0xGBxL0Bb4Q5wl3qEVD8hF6ThDX5YhN3da+uweAW9kWG4Ow2IAlsynzt+PFkMtEjkm5X/+1Q
SzwBrJ8jyu6MeSe8yRkvzD/OvVXMv9luoZzZss1y/v8RNBoNCGiUTRqWvqr/2Fwc7soF8eFj
FoG1BpaxYRobto0PhllVVRWuSBKRoMHiLPHI8zZOUf+UjMFqgWlt2NZGy5I2dnagsa61QV3X
zFXY2akCrBRM4yYEMoanIxMNaOQLOorxTwIhjeIEoiwc4EFiP4i9q1yR6dxKswpVtblSVdHg
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ymPKny7MnIs+jZdBRN+JTg
/KjM8uG8/HM8Ua+/thMfbL2SHEQXhrGf4X0l7ofZjOTrIh9FYvj6o/s1v2DypnMYJnusyCsL
77E8hQ8sy2g4Rpu4lcaBgl+y5kgAklxkrczCNSc3WMstbD00v9yRNW7i2xx/YTwZk6jpBTEj
4MX44sHbh597cKKX/3aWKFGiRIkSJUqUKFGiRIkSJUqUKFGiRIn/If4ChJ1ZvgAoAAA=

--HcAYCG3uE/tztfnV--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/