On Sun, Mar 30, 2008 at 1:48 PM, Michael Blizek <michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote: > On 03:20 Sat 29 Mar , Robert P. J. Day wrote: > > > > following up on a short article i just read, where is /dev/kmem > > these days? was it actually deleted? back in 2005, jon corbet was > > certainly hinting at this: > > > > http://lwn.net/Articles/147901/ > > > > and i don't see it today on my system, and i don't see a kernel config > > option for it either, but i also don't see an explicit removal of that > > feature in "git log" and log entries as recent as january of last year > > still talk about it. > > I do not know if it is still in the kernel. But the missing device says > nothing. You can create it with "mknod /dev/kmem c 1 2". Also see the manpage > of mknod and the "devices.txt" file in the kernel Documentation/. Yes, I just saw it....right there at drivers/char/mem.c: static int __init chr_dev_init(void) { int i; int err; err = bdi_init(&zero_bdi); if (err) return err; if (register_chrdev(MEM_MAJOR,"mem",&memory_fops)) printk("unable to get major %d for memory devs\n", MEM_MAJOR); mem_class = class_create(THIS_MODULE, "mem"); for (i = 0; i < ARRAY_SIZE(devlist); i++) And it also right there in my kernel (2.6.25-rc7) /dev/kmem. This article described how to used it: http://lwn.net/Articles/147902/ This patch attempted to make it into a Kconfig option, but was not very successful: http://kerneltrap.org/mailarchive/linux-kernel/2008/2/12/822794 So not config option yet. So I really cannot understand why it did not appear in your kernel built? -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ