Re: How to read file in kernel module?

From: Olaf Dietsche
Date: Mon Feb 07 2005 - 09:39:37 EST


linux lover <linux_lover2004@xxxxxxxxx> writes:

> Now what i want is to use same bufproc_read &
> bufproc_write functions defined in /proc file
> handling kernel module to be used in another kernel
> module to read that /proc/file in kernel module.The
> second kernel module only used to read /proc file in
> kernel. I am not understanding how can i open that
> /proc/file in second kenrel module to read in kernel?

Look at kernel_read() in fs/exec.c and fs/binfmt_*.c

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