Re: modprobe error with ndiswrapper [ please suggest why modprobe fails (or tell me the flow of modprobe)]

2009-08-11 Thread Erik Mouw
ndiswrapper. Just upgrade to a more recent kernel, in your case you just have to upgrade to the latest Fedora version. Regards, Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: Block drivers

2009-06-25 Thread Erik Mouw
simply because all drives use the same interface standard. Once you've created a driver for that standard, all drives are supported. Unfortunately for you, the drivers for SATA and SCSI drives were written long time ago. Regards, Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15

Re: module compile error -- but suprising

2009-03-31 Thread Erik Mouw
on. Erik On Mon, Mar 30, 2009 at 4:47 PM, Erik Mouw m...@nl.linux.org wrote: On Mon, 30 Mar 2009 16:32:40 +0530 nidhi mittal nidhimitta...@gmail.com wrote: hello all this is actual o/p of my make

Re: module compile error -- but suprising

2009-03-30 Thread Erik Mouw
directory `/home/nidhi/STUDY/LINUX/LINUX_Source_Codes/linux-2.6.28.7' You shouldn't use floating point math in your kernel module. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: Testing Boot Sequence

2009-01-12 Thread Erik Mouw
to the list. Randomly CC'ing subscribers isn't any faster, just more annoying for those subscribers. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: i_blocks in struct ext2_inode

2009-01-10 Thread Erik Mouw
. Is there any specific reason for the same ? Block devices have historically used a 512 byte blocksize. That will change in the future, but the default blocksize will remain 512 bytes for a long time. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58

Re: Runtime decide module to load

2009-01-10 Thread Erik Mouw
driver. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: RC Script

2009-01-08 Thread Erik Mouw
a way to capture all messages. I want to follow boot up sequence and want to check any error message at boot up time i want to capture. Try serial console or netconsole. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc

Re: Writing Vlan driver

2009-01-07 Thread Erik Mouw
On Wed, 7 Jan 2009 13:51:22 +0800 Tekale Sharad-FHJN78 fhj...@motorola.com wrote: Erik Mouw wrote: No need to write that, support for IEEE 802.1Q VLAN has been in the kernel for ages. I need to write the vlan driver for Marvell chip(88e6060), fortunately it is supported in 2.6.28 kernel

Re: Writing Vlan driver

2009-01-06 Thread Erik Mouw
that, it's already there. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: Copying Data Blocks

2009-01-06 Thread Erik Mouw
manual pages for them. In that case, see http://linux.die.net/man/2/tee and http://linux.die.net/man/2/splice . Apropos efficiency: I think you could have copied/rsynced your filesystem to a new disk in the time you have been trying to implement a kernel module... ;-) Erik -- Erik Mouw -- m

Re: what's the rationale for the /dev/pts mount point?

2008-12-24 Thread Erik Mouw
and xterms on your machine. /dev/pts removed that limit. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: Problem with Modules

2008-12-24 Thread Erik Mouw
:~/Desktop/drivers/host$ modprobe ohci-hcd FATAL: Module ohci_hcd not found.Can anyone tell what to do now...Thanks Your shell prompt suggests that you are a normal user. You can only use modprobe as root. Erik -- Erik Mouw -- m...@nl.linux.org GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9

Re: what's the rationale for the /dev/pts mount point?

2008-12-24 Thread Erik Mouw
On Wed, 24 Dec 2008 06:39:08 -0500 (EST) Robert P. J. Day rpj...@crashcourse.ca wrote: On Wed, 24 Dec 2008, Erik Mouw wrote: On Tue, 23 Dec 2008 17:56:00 -0500 (EST) Robert P. J. Day rpj...@crashcourse.ca wrote: after i mounted /dev/pts (rw), ssh connections started to work

Re: Network monitor tool

2008-12-03 Thread Erik Mouw
is not kernel related so off topic on this list. On Wed, Dec 3, 2008 at 1:04 PM, Shyam Burkule [EMAIL PROTECTED]wrote: Hi All, I need information on open source network monitor tool that can monitor windows and Linux systems. Thanks -- Shyam -- Erik Mouw -- [EMAIL PROTECTED

Re: Exception Stack on ARM 922T kernel 2.6.26

2008-11-11 Thread Erik Mouw
to be linux-arm-kernel-owner #2] -- Erik Mouw -- [EMAIL PROTECTED] GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D signature.asc Description: PGP signature

Re: Linux-SCSI implementation

2008-11-04 Thread Erik Mouw
want to subscibe, send a message (text only, HTML messages like the one you send to this list are automatically dropped on vger) with the linux subscribe linux-scsi to [EMAIL PROTECTED] Erik -- Erik Mouw -- [EMAIL PROTECTED] GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D

Re: Regd. mailing list filters.

2008-10-27 Thread Erik Mouw
becoz lot of ppl would be having the same problem. couldnt see any help in FAQ also. The admin alone won't help you, the mailing list members also have to cooperate. I for myself won't reply to mailing list messages with silly pseudo-legal disclaimers. Erik -- Erik Mouw -- [EMAIL PROTECTED

Re: pci_ids.h

2008-10-27 Thread Erik Mouw
00 00 00 00 00 00 0b 01 00 00 Does it matter? No, lspci is a userspace utility with a different list of known PCI IDs. On Debian systems, you can update it (as root) with the command update-pciids. Erik -- Erik Mouw -- [EMAIL PROTECTED] GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58

Re: insmod not working with initramfs

2008-10-09 Thread Erik Mouw
used for NFS booting. Please let me know where I am wrong? Try to use less memory. Enable less kernel features, optimize for size and not for speed, use a smaller userland (try the uclibc/busybox/tinylogin combination). Erik -- Erik Mouw -- [EMAIL PROTECTED] GPG key fingerprint: D6AC 7F15

Re: About Bad Magic Number

2008-09-29 Thread Erik Mouw
forgot to set the number. Without seeing the code, it's hard to tell what's wrong. Erik -- Erik Mouw -- [EMAIL PROTECTED] GPG key fingerprint: D6AC 7F15 A26E C5C4 62E0 4A58 FCF9 551C 9B48 B68D -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED

Re: Calling Convention for kernel drivers

2008-07-17 Thread Erik Mouw
messing with assembly and use C. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Assembly code for calling a function on amd machine

2008-07-15 Thread Erik Mouw
, it will work on an AMD CPU. Without source it is impossible to tell why it doesn't work for you. BTW, is this really a kernel related question? Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: IP Address

2008-07-14 Thread Erik Mouw
On Mon, Jul 14, 2008 at 03:40:12PM +0530, jelari wrote: Is there any API exists to get a ip address of my machine?.. No, because IP adresses belong to interfaces and not to machines/hosts.. Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew

Re: Defining new variables for use in multiple c files. How do I create header files that can be #included in multiple c files?

2008-07-09 Thread Erik Mouw
file with the keyword extern. So foo.c has: int bar; And foo.h has: extern int bar; If baz.c wants to use the variable bar, it will only have to include foo.h: #include foo.h /* ... */ bar = 42; Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Kernel build problem

2008-07-02 Thread Erik Mouw
the build process hangs and there is no option left but a hard reboot. Sounds like bad hardware. Check cooling and memory. Please let me know what all options can be tried in order to solve this problem. Google for sig11 faq. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description

FYI: persistent naming of USB serial devices

2008-06-16 Thread Erik Mouw
to use /dev/wacom. HTH, Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Building a module for different kernels on the same machine

2008-06-10 Thread Erik Mouw
conventions, but also structure layouts) from 4.1.1. Or should I install two version of gcc on the F9 machine (And I am not sure it is possible).? You could try to do that. Another trick is to install fc6 with the correct compiler in a virtual machine (like qemu), or in a chroot. Erik -- Erik

Re: Building a module for different kernels on the same machine

2008-06-10 Thread Erik Mouw
to take conversations off list by asking for private replies. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Reply plss....

2008-05-05 Thread Erik Mouw
: if you want to develop using ancient kernels, then you are on your own. waiting for replies Good luck waiting... Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Dynamic linking on Linux

2008-04-26 Thread Erik Mouw
) and if it is, it will increase the refcount for that inode. Because all references to files are done by inode and not by path, it will even work when you have hardlinked files. The in-memory inode has a refcount, the on-disk inode will not change when a file is merely opened. Erik -- Erik Mouw -- [EMAIL PROTECTED

Re: times() is returning -1

2008-04-15 Thread Erik Mouw
to overcome this issue? Check errno to see what's going wrong. Oh, and to get the amount of system ticks is a bad idea, see the return value section in times(2). (I guess you will find you get an error after 5 minutes, not after 3). Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description

Re: Mail list archives

2008-04-15 Thread Erik Mouw
list). Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Ctrl-C does not stop a process

2008-04-09 Thread Erik Mouw
fine.Has anyone seen this behavior before? And how to solve this? Could be a Hyperterminal problem, try a different terminal emulator to be sure. Could be a problem with messed up terminal line settings. Try stty sane to get them right. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc

Re: extX features

2008-04-07 Thread Erik Mouw
or journalling, it has to be filesystem dependant..isn't it ? If the OS doesn't support journalling (i.e.: doesn't support ext3 which basically is ext2+journalling), it can still mount the filesystem as an ext2 filesystem. Therefore journalling is a compatible feature. Erik -- Erik Mouw -- [EMAIL

Re: Newbies question regarding git

2008-04-07 Thread Erik Mouw
a look at the git homepage at htp://www.git.or.cz/ . The documentation section has a couple of good links. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Reader/writer semaphores

2008-04-03 Thread Erik Mouw
) should be used to protect *data*, not to protect *code*. It's not bad if two threads execute the same *code* at the same time, as long as they don't access the same *data* at the same time. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: SCSI drivers

2008-04-02 Thread Erik Mouw
, and a target (disk should be fine). How do I know if there is a SCSI adapter in my PC. lspci should tell you. Otherwise open the case and look for a SCSI connector. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: journal_remove_journal_head oops in bad area access

2008-04-02 Thread Erik Mouw
. Could you try to recreate it on a recent kernel? (2.6.24.4, for example). The lkml folks hate to chase bugs that are already fixed in newer kernels. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: do ext3 symlinks cost any data blocks?

2008-03-31 Thread Erik Mouw
for the block list (direct, indirect, double indirect and triple indirect blocks). If the destination name is longer than the required space, they will allocate a data block for it instead. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: where went /dev/kmem?

2008-03-31 Thread Erik Mouw
On Mon, Mar 31, 2008 at 10:20:35AM -0400, Robert P. J. Day wrote: On Mon, 31 Mar 2008, Erik Mouw wrote: On Sat, Mar 29, 2008 at 03:20:31AM -0400, 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

Re: where went /dev/kmem?

2008-03-31 Thread Erik Mouw
786688 * 4096 = 374048 = 0xc010, which according to the System.map is startup_32. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: do ext3 symlinks cost any data blocks?

2008-03-31 Thread Erik Mouw
blocks if it fits, and/or otherwise data blocks. See the comments at the top of fs/ext3/xattr.c: * Extended attributes are stored directly in inodes (on file systems with * inodes bigger than 128 bytes) and on additional disk blocks. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc

Re: Kernel Mode Linux : Execute user processes in kernel mode

2008-03-30 Thread Erik Mouw
crash the whole system. IOW: It sacrifies the protection the kernel provides for a very minimal speed increase. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: benefits to likely() and unlikely()?

2008-03-29 Thread Erik Mouw
block becomes a branch and the normal code flows just straight. Something like: if(unlikely(ptr == NULL)) { printk(KERN_EMERG AARGH\n); panic(); } foo(ptr); Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital

Re: Compile flags for kernel for maximum debugging symbols (for UML)

2008-03-18 Thread Erik Mouw
not typically increase code size. It also performs further optimiza‐ tions designed to reduce code size. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: question about SCSI commands

2008-03-17 Thread Erik Mouw
. The larger the number, the larger the LBA the command takes. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: handling of lost-writes in linux filesystems

2008-03-17 Thread Erik Mouw
the raid. http://storagefoo.blogspot.com/2006/04/lost-writes.html Any suggestions or links ??? That's a non-existent problem, IMHO. If a device doesn't raise an error when writing a block is not successful, I'd send it back for warranty to the vendor. Erik -- Erik Mouw -- [EMAIL

Re: questoin about change registers by mmap

2008-03-17 Thread Erik Mouw
), maybe we can help to solve it another way. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Compile flags for kernel for maximum debugging symbols (for UML)

2008-03-17 Thread Erik Mouw
that they look like below. uhm, prevents inlining at all cost? And no -O, even -Os? Some inlining is required and it shouldn't really matter for debugging. You probably want -O, not -Os or -O2. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: framebuffer fb not listed under /dev

2008-03-12 Thread Erik Mouw
On Wed, Mar 12, 2008 at 10:57:33AM +0530, Max Stirling wrote: Erik Mouw wrote: On Tue, Mar 11, 2008 at 02:34:16PM +0530, Max Stirling wrote: cat /proc/devices shows fb but when I do ls -l /dev I don't find the fb node The X-server should be using the framebuffer (/dev/fb)? So why

Re: Bss segment advantage.

2008-03-12 Thread Erik Mouw
the runtime initialisation clear the BSS. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Kernel modules and the used by column in lsmod

2008-03-11 Thread Erik Mouw
the user is a process. Erik -- Erik Mouw -- [EMAIL PROTECTED] signature.asc Description: Digital signature

Re: Rabin fingerprint

2008-02-29 Thread Erik Mouw
Please do not top post. On Fri, Feb 29, 2008 at 10:03:54AM -0800, Mrunal Gawade wrote: Thanks Erik. Are you aware of Sha1 and other cryptographic being available in kernel? Yes, see the crypto directory in your kernel source tree. Erik -- They're all fools. Don't worry. Darwin may be slow,

Re: Location of syscall wrappers

2008-02-07 Thread Erik Mouw
On Thu, Feb 07, 2008 at 02:12:38PM +0530, Rajat Jain wrote: Hi, Use syscall(SYSTEM_CALL_NUMBER, arg1, arg2, arg3); _syscall3() macro are are not supported nowadays. http://lkml.org/lkml/2007/7/5/314 Who is supposed to provide syscall()?? C library? Where do I find its

Re: SCSI drivers ?

2008-02-01 Thread Erik Mouw
On Fri, Feb 01, 2008 at 09:17:37PM +0530, Onkar wrote: are SCSI drivers very difficut to write. Because SCSI is quite a difficult protocol. Why is there so fuss about them Because it's easy to get wrong and because the SCSI layer is in a constant rewrite. and writers of such drivers are

Re: BLKRRPORT

2008-01-25 Thread Erik Mouw
On Thu, Jan 24, 2008 at 09:02:06PM +0530, shuab wrote: Can any body give me the flow of BLKRRPORT of ioctl I guess you mean BLKRRPART, not BLKRRPORT. See function blkdev_locked_ioctl() in block/ioctl.c and follow it from there. Erik -- They're all fools. Don't worry. Darwin may be slow, but

Re: Question on kernel startup

2008-01-25 Thread Erik Mouw
On Fri, Jan 25, 2008 at 11:48:25AM +0530, sahlot arvind wrote: The vast majority of it probably is, some of it isn't and it'll depend on the architecture... So isn't there a thick line that this code is PIC and this is not? What I understand is that on any arch code, which runs before

Re: print current date and time in a kernel module

2008-01-25 Thread Erik Mouw
Please don't top-post. On Thu, Jan 24, 2008 at 05:29:09PM +0530, Manoj Gupta wrote: In my understading, xtime variable stores the current time and date, which has tv_sec - seconds elapsed since January 1, 1970 (UTC) tv_nsec - nanoseconds in the last second That is indeed UTC, but my

Re: finding device driver associated with device

2008-01-18 Thread Erik Mouw
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I leave

Re: finding device driver associated with device

2008-01-18 Thread Erik Mouw
Please don't top-post. Please keep the list CC'ed at all times. On Fri, Jan 18, 2008 at 12:13:08AM +0530, Onkar wrote: what about getcfg ? What's getcfg supposed to do? I don't have that command on my Debian system. Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll

Re: finding device driver associated with device

2008-01-17 Thread Erik Mouw
On Thu, Jan 17, 2008 at 11:55:44PM +0530, Onkar wrote: How do i find a device driver (module .ko ) associated with the device ? Check the major number of the device node and look it up in /proc/devices . That should at least give some ideas about what driver services what device. Erik --

Re: working files from Interupt routine

2008-01-17 Thread Erik Mouw
On Thu, Jan 17, 2008 at 05:49:32PM +0530, Kathiresan, Lekshmanan wrote: Hi All, I have written code to create ordinary file from Linux kernel module. This code is working fine in normal execution, but its hangs when this function called from hook function or ISR. You are probably not

Re: mount query

2008-01-14 Thread Erik Mouw
On Mon, Jan 14, 2008 at 09:04:47PM +0530, Lal wrote: How does mount utility find (sector) location of partition table for a given device/file system? Mount doesn't look for a partition table, it only knows about block devices and mount points. I am writing a sample mass storage driver, and

Re: How to modify uptime

2008-01-10 Thread Erik Mouw
On Thu, Jan 10, 2008 at 02:31:46PM +0530, amit mehta wrote: One of our customer is facing an issue with jiffies wrap up. on a 32 bit machine, the variable jiffies count upto 472 days. the customer's server was up for 472 days ('uptime') and to reproduce the same, i tried to tweak with the

Re: Ext3 File system version

2008-01-10 Thread Erik Mouw
On Thu, Jan 10, 2008 at 06:37:32PM +0530, shuab wrote: Can any one tell me. How to find out the version of ext3 file system for AS4-up6. is there any command to do this. There is no ext3 version, there is just ext3. The next version of the ext3 filesystem will be called ext4. Erik --

Re: Strange feezing on 2.6.21

2008-01-10 Thread Erik Mouw
On Thu, Jan 10, 2008 at 03:04:34PM +0300, Konstantin Kalin wrote: Mulyadi Santosa wrote: Hi On Jan 10, 2008 5:58 PM, Konstantin Kalin [EMAIL PROTECTED] wrote: Hello, I'd like to ask your help with strange behavior of kernel 2.6.21-7. try to upgrade to latest stable first.

Re: Help Regarding - entry.S file

2008-01-09 Thread Erik Mouw
Please don't top-post. On Wed, Jan 09, 2008 at 01:52:52PM +0530, Chetan Nanda wrote: Yes, I have done grep but 'include/asm-i386/dwarf2.h' also defined some macros .. I am not able to understand those macros .. Are these GCC specifics .. basically what is the purpose for these ? No, they

Re: help in writing usb sniffer.

2007-12-19 Thread Erik Mouw
On Sat, Dec 15, 2007 at 11:39:42AM +0530, V.Ravikumar wrote: Please help me in writing a linux usb sniffer. See Documentation/usb/usbmon.txt . Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Re: Linux PXE info

2007-12-19 Thread Erik Mouw
On Mon, Dec 17, 2007 at 07:05:25PM +0530, Mukund JB. wrote: I am just curious about a concept I would like to know about PXE. If suppose my PXE succesfully goes through the DHCP and gathers the Image from the network through tftp (not a linux image but an authentication module) and executes

Re: Assigning statically bttv irqs

2007-12-19 Thread Erik Mouw
On Wed, Dec 19, 2007 at 06:11:10PM +0100, Andrea Gasparini wrote: I want to assign bttv irqs in order to don't share irqs between bttv cards. So, can i try to assign statically, at least for some test, irqs in bttv code? Could I lead to some problem doing that? Yes, the problem is that you

Re: stdin + hooking

2007-12-13 Thread Erik Mouw
On Wed, Dec 12, 2007 at 01:20:53PM -0300, Jorge Pereira wrote: anybody have any idea about how to make hooking of stdin? Yes, 34 years ago Doug McIlroy thought about it when writing a shell and Ken Thompson implemented it overnight in Unix[1]. eg: i has the device barcode that receive bytes in

Re: multi-replication in distributed system

2007-12-13 Thread Erik Mouw
On Thu, Dec 13, 2007 at 03:06:20PM +0800, Wang Yu wrote: Recent distributed systems usually adopt object-based storage, and every object has several replications to avoid data loss. When several clients access the same file concurrently, are there some algorithms to improve read performace

Re: Is there a different process fofr building kernel modules for RHEL5 or FC 7?

2007-12-10 Thread Erik Mouw
On Mon, Dec 10, 2007 at 05:02:26PM +0530, Thippeswamy, Aravind wrote: I am facing problems while I try to compile a simple Hello World Kernel module. I am using RHEL 5 (2.6.12.x kernel). This is the program that I am trying to compile. /*

Re: Is there a different process fofr building kernel modules for RHEL5 or FC 7?

2007-12-10 Thread Erik Mouw
On Mon, Dec 10, 2007 at 03:48:21PM +0100, Thomas Petazzoni wrote: Le Mon, 10 Dec 2007 19:05:52 +0530, amol verule [EMAIL PROTECTED] a écrit : hi aravind /lib/modules/kernel_version/build is a softlink to source code of kernel.. create softlink to kernel source ...then try once again

Re: How printk() buffering works?

2007-12-09 Thread Erik Mouw
On Sun, Dec 09, 2007 at 07:08:12PM +0530, Amogh Hooshdar wrote: I am a newbie in the world of Linux kernel. I have lots of questions and some may be really silly. So, I will be asking a lot of questions in the coming few months. I hope asking such questions is considered OK here. If not,

Re: No linux/modversions.h in my system.

2007-12-09 Thread Erik Mouw
On Sun, Dec 09, 2007 at 06:52:41PM +0530, Amogh Hooshdar wrote: I was trying the code at http://www.faqs.org/docs/kernel/x1206.html Note that the code over there was written with linux-2.4 in mind. As lots of things changed in 2.6, it is very well possible that the examples don't compile against

Re: initrd and noinitramfs.c -- the saga continues

2007-12-02 Thread Erik Mouw
On Sat, Dec 01, 2007 at 09:22:28PM -0500, Robert P. J. Day wrote: just perusing the simple code in init/noinitramfs.c, which is what's invoked if you choose not to build in initrd support: No, that's invoked when you choose not to build initramfs. IOW: it is used when you build with initrd.

Re: Hi Start_kernel

2007-11-15 Thread Erik Mouw
On Thu, Nov 15, 2007 at 08:03:17AM -0600, Linto Poulose E wrote: What is the differnce between printf and printk Easy: printf() is for userspace, printk() is for kernel space. Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in

Re: Project /dev/random statistics

2007-11-06 Thread Erik Mouw
On Fri, Nov 02, 2007 at 03:47:51PM +0100, Marcus Nutzinger wrote: -BEGIN PGP SIGNED MESSAGE- I've read through the /KernelProjects page at Kernelnewbies and I think I'm interested in developing this statistics interface for /dev/random.. Unfortunately, this project has no Contact

Re: Help with linux module comunication.

2007-10-31 Thread Erik Mouw
On Wed, Oct 31, 2007 at 06:13:45PM +0800, Readon Shaw wrote: I wanna port the kernel to my board which has a specific function, such as generate/receive packets for throughput test, etc. So I need to call driver function, for example, packets receiving method. Different NIC

Re: MAC address is not setting up

2007-10-17 Thread Erik Mouw
On Mon, Oct 15, 2007 at 05:15:57PM +0530, tomy wrote: Currently I am doing Porting Linux to ARM platform. I am using U-boot as my boot loader for Linux 2.6.I had set the mac address as an environmental variable in U-boot. My problem is the Mac address is not setting up (Means

Re: Registered ISR is not invoked

2007-10-17 Thread Erik Mouw
On Wed, Oct 17, 2007 at 11:39:06AM +0530, chitra wrote: I am writing some Diagnostics code for a UART chip. I was able to write most of our test cases from application space using inb/outb calls. To test the 'interrupts' generated by this device, i decided to use the

Re: Virtual Memory in diskless environment??

2007-10-12 Thread Erik Mouw
On Fri, Oct 12, 2007 at 02:27:52PM +0530, Thippeswamy, Aravind wrote: I would like to know if the Virtual Memory addressing is still going to be used in an environment with out any disk/Swap-space. The reason I ask this is because, I think that the main point to having this

Re: Upgrading datastructures between different filesystem versions

2007-09-28 Thread Erik Mouw
On Wed, Sep 26, 2007 at 06:29:19PM -0500, Sachin Gaikwad wrote: Is it not the case that VFS takes care of all filesystems available ? VFS will see if a particular file belongs to ext3 or ext4 and call that FS's drivers to access information ?? No, the VFS won't do that. The mount(8) command

Re: How to find Back Ward Compatiblity for Binary files

2007-09-28 Thread Erik Mouw
On Fri, Sep 28, 2007 at 10:37:24AM +0100, deena dayalan wrote: I have written small application code in C language and it has been compiled using gcc on RedHat 3.0 kernel 2.4.21 and Is it possible for me to run RedHat 3.0 compiled binary on RedHat 4.0 kernel 2.6.8? Yes, that should be

Re: mounted partitions and use

2007-09-18 Thread Erik Mouw
On Tue, Sep 18, 2007 at 10:01:36AM -0300, Alan Menegotto wrote: David Santos escreveu: Hi, im triying to make a lkm that check mounted partitions and if anyone of this partitios hace 90% used send a signal to dmesg (printk...). Someone know any api or library from where i would take this info

Re: compilng and booting new kernel

2007-09-18 Thread Erik Mouw
On Tue, Sep 18, 2007 at 08:27:21PM +0530, Onkar wrote: I am new to Linux Kernel. I have complied the kernel ;I have created a initrd.img-2.6.22-6-686 file of size 43MB. I am unable to boot the kernel.Please help me !!. Can anyone please give me some reliable documentation as to how to compile

Re: ioctl() retrieve kernel version!

2007-08-27 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Aug 27, 2007 at 01:15:54PM -0300, Jorge Pereira wrote: it's possible retrieve version of kernel using ioctl()? No, but you could use the POSIX compatible uname(2) function instead. Or just read the version from /proc/version . Erik - --

Re: ioctl() retrieve kernel version!

2007-08-27 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most

Re: division and cpu usage

2007-08-24 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 24, 2007 at 03:18:32AM +0200, Luka Napotnik wrote: I'm new to kernel development and have some questions. 1. Apperently kernel doesn't support operations with floating-point types. How can I then divide a number 265 with the number 7

Re: stat

2007-08-17 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 17, 2007 at 07:21:44PM +0530, Adil Mujeeb wrote: This is regarding the stat system call. Before asking the question, let me tell you the environment setup of my test machine. I have kernel version 2.6.19 installed and my home

Re: cat /dev/mem, cat /dev/ram ?

2007-08-09 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Aug 08, 2007 at 04:36:08PM -0500, Christopher Reder wrote: In trying to track down potential ram issues, I was messing around with different devices. I have a ram chip, 32meg on the bus of a at91rm9200. Is there a way to view the

Re: -dirty appended to kernerl version string

2007-08-07 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Aug 06, 2007 at 01:41:33PM +0200, Andre Haupt wrote: On Mon, Aug 06, 2007 at 04:11:26PM +0530, amol verule wrote: have used any append-version or revision? Yes, I have selected both CONFIG_LOCALVERSION and CONFIG_LOCALVERSION_AUTO. My

Re: passing command line arguments to kernel module

2007-08-02 Thread Erik Mouw
thing. See the mailing list archives for an explanation why this is considered evil. Erik Mouw and others explained that very well. (Sorry, dont have a link handy) It's in the FAQ on the website. Erik - -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get

Re: what is a changeset ?

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 05:52:21PM +0300, Ramagudi Naziir wrote: LWN quote: Well over 500 changesets have been merged into the mainline git repository since -rc1. What does the term changeset mean ? a patch ? a set of patches ? how is it ? A

Re: what is a changeset ?

2007-08-02 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Aug 02, 2007 at 07:48:27PM +0300, Ramagudi Naziir wrote: A changeset is a combination of changes to files in the (git) repository. It usually contains a couple of patches, but in git it can also be used to change file mode (make certain

Re: Reading flags from device driver open call

2007-07-30 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jul 30, 2007 at 09:35:29AM -0500, [EMAIL PROTECTED] wrote: I am writing a block device driver for an SD card accessed over SPI. If the card is write-protected (using the little switch on the side), I would like to inform the kernel that

Re: necessity for extern in function prototype?

2007-07-26 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jul 26, 2007 at 04:45:55AM -0400, Min-Hua Chen wrote: I note that the headers of the linux source have extern in the function protoptye. I think the extern is not necessary because all function in C are global (except static functions),

Re: some weird proprocessor directives

2007-07-19 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jul 19, 2007 at 09:04:30AM -0400, Robert P. J. Day wrote: is there some rationale to this convolution from compiler.h? ... #ifndef __must_check #define __must_check #endif #ifndef CONFIG_ENABLE_MUST_CHECK #undef __must_check

  1   2   >