can anyone tell me how to write into i file from kernel space.
i tried sys_open,sys_write functions bbbbbut they don't work
from
my module.
anil
Hi,
On Sat, Jan 04, 2003 at 04:02:55PM -0000, anil vijarnia wrote:
> can anyone tell me how to write into i file from kernel space.
> i tried sys_open,sys_write functions bbbbbut they don't work
> from my module.
As far as I understand the general oppinion on this list :-) the
preferred method is to have your module preset a character-device
to userspace. Then use a small program to do the I/O.
This normally keeps your kernel module simple and allows for
arbitrary compex I/O in userspace.
Chris
--
No keyboard present
Hit F1 to continue
Zen engineering?
-- Jim Griffith
Hi,
Patch below will allow for mounting of root from a DAC960 raid device
This has been submitted before (Leonard,Oliver,others), but I'll submit it
again.
Reason:
Needed to boot of a DAC960 raid device
Precedents/Justification for Patch:
Root support for compaq raid is included
Root support for ata raid is included
DAC960 driver is included but root support is not
Cheers
Rick
diff -ur linux-2.4.20/init/do_mounts.c linux/init/do_mounts.c
--- linux-2.4.20/init/do_mounts.c Fri Nov 29 10:53:15 2002
+++ linux/init/do_mounts.c Sat Jan 4 23:59:06 2003
@@ -164,6 +164,24 @@
{ "dasdg", (DASD_MAJOR << MINORBITS) + (6 << 2) },
{ "dasdh", (DASD_MAJOR << MINORBITS) + (7 << 2) },
#endif
+#if defined(CONFIG_BLK_DEV_DAC960) || defined(CONFIG_BLK_DEV_DAC960_MODULE)
+ { "rd/c0d0p",0x3000 },
+ { "rd/c0d1p",0x3008 },
+ { "rd/c0d2p",0x3010 },
+ { "rd/c0d3p",0x3018 },
+ { "rd/c0d4p",0x3020 },
+ { "rd/c0d5p",0x3028 },
+ { "rd/c0d6p",0x3030 },
+ { "rd/c0d7p",0x3038 },
+ { "rd/c0d8p",0x3040 },
+ { "rd/c0d9p",0x3048 },
+ { "rd/c0d10p",0x3050 },
+ { "rd/c0d11p",0x3058 },
+ { "rd/c0d12p",0x3060 },
+ { "rd/c0d13p",0x3068 },
+ { "rd/c0d14p",0x3070 },
+ { "rd/c0d15p",0x3078 },
+#endif
#if defined(CONFIG_BLK_CPQ_DA) || defined(CONFIG_BLK_CPQ_DA_MODULE)
{ "ida/c0d0p",0x4800 },
{ "ida/c0d1p",0x4810 },