Re: about EXT3_SUPER_MAGIC

2010-11-13 Thread arshad hussain
On 11/14/2010 9:59 AM, Onkar Mahajan wrote: What is EXT3_SUPER_MAGIC ? A signature for identification. How is it arrived at ? There is no formula for it. It can be anything. UFS has signature (magic) which is bill joy's birth date. I am writing a file system for which I am referring to the

Re: segmentation question

2010-10-04 Thread arshad hussain
On 10/2/2010 3:08 AM, Sri Ram Vemulpali wrote: Hi All, I am developing segmentation for my kernel. In that process I choose to divide whole memory in to fixed size segments. So a 4GB memory can be divided in to 8192 segments. So I initialize segment descriptors in to the GTD withs

Re: ask for kernel module programming

2010-09-17 Thread arshad hussain
On 9/16/2010 6:37 PM, jhoni maux wrote: oh, thank's for all guys :) what is privilege ring of CPU (0 and 3) can you give a detil about that ?? Have a look at ... https://sites.google.com/site/owlkernel/documentation#TOC-Protection1 may i know where is the place to find some guide or

Re: Best linux distribution

2010-09-17 Thread arshad hussain
On 9/16/2010 6:32 PM, mohit verma wrote: why LInux mint? Its just my opinion. The question was , to be able to run latest ( Almost latest ) kernel on an old hardware. I am presently running Mint xfce on AMD 2200 with 256 mb ram ( 32 mb shared video ). and its running fine. Thanks. please

Re: filesystem or database??

2010-09-17 Thread arshad hussain
On 9/17/2010 1:28 AM, mohit verma wrote: hello, when we install any package (like in ubuntu) ,at end the terminal shows reading database . the idea i got by my friend is that package manager uses this database (like .deb or rpm). but my question is : everything in linux is a file so

Re: ask for kernel module programming

2010-09-16 Thread arshad hussain
On 9/16/2010 11:56 AM, jhoni maux wrote: HI, Now i'm learn kernel module programming, but i'm still confuse about user space context and kernel space context. Here I think 'user space context' and 'user space' implies the same thing. anyone know about what the different between user space

Re: how to add...

2010-09-16 Thread arshad hussain
On 9/16/2010 4:40 PM, matthias wrote: you can put it in a kernel module. have a read at http://lwn.net/Kernel/LDD3/ it's a bit outdate, but should do for the first steps. 2010/9/14 mohit vermamohit89m...@gmail.com: hi all, it is my first time , i am wiriting a simple interrupt handler .how to

Re: Best linux distribution

2010-09-16 Thread arshad hussain
On 9/16/2010 5:09 PM, Rags Linux wrote: Hi All, I have Pentium 4 machine. Which is the best linux distribution to install? Ubuntu 10 and Fedora 13 are the latest. Can they run on older machines? If so how much older? Mint 9 xfce. Thanks The latest kernel version is 2.6.35.4 and I have

Re: Integer Division on 32 Bit Machines

2010-09-10 Thread arshad hussain
On 9/10/2010 12:22 PM, Bond wrote: On Fri, Sep 10, 2010 at 10:08 AM, arshad hussain arshad.su...@gmail.com mailto:arshad.su...@gmail.com wrote: I agree with Silesh 100% here. Thanks. Rather than agreeing with Silesh show some real suggestion to original posters question. Do

Re: Question on MMU

2010-09-10 Thread arshad hussain
On 9/11/2010 8:04 AM, Mulyadi Santosa wrote: Hi Sri... On Sat, Sep 11, 2010 at 09:19, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi all, I have a question on MMU. Memory management is used to segregate the memory between process and make sure no process steps on each other. Also,

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread arshad hussain
It would be better if you do not hijack other e-mail threads to post your own question. I agree with Silesh 100% here. Thanks. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: A question

2010-09-01 Thread arshad hussain
On 9/1/2010 9:45 PM, Tayade, Nilesh wrote: -Original Message- From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies- bou...@nl.linux.org] On Behalf Of Hiren Panchasara Sent: Wednesday, September 01, 2010 9:08 PM To: kernelnewbies@nl.linux.org Subject: A question Process context

Re: what is static inline void tvec_base

2010-08-28 Thread arshad hussain
On 8/28/2010 11:07 AM, Mulyadi Santosa wrote: On Sat, Aug 28, 2010 at 12:19, James Bondjamesbond.2...@gmail.com wrote: Please don't top post :) What is that top post I never came across such a thing in timer code? top post is a way to put your reply on top of the quoted previous

Re: macro or inline

2010-08-23 Thread arshad hussain
On 8/23/2010 4:09 PM, Parmenides wrote: Hi, In kernel, some codes implemented by macro while the others by inline function. I wonder how to determine in what situation to use one, whereas in what situation to use the other. Inlining functions have benefits when debugging and type checking.

Re: linux/module.h does not exist

2010-08-22 Thread arshad hussain
On 8/22/2010 11:11 AM, Tapas Mishra wrote: /home/tapas/LKP/pandora/temp/sample2/sample2.c:2:25: error: sys/syscall.h: No such file or directory My 2 cents ... #includelinux/syscalls.h http://lxr.linux.no/linux+*/include/linux/syscalls.h , try this include. Thanks

Re: linux/module.h does not exist

2010-08-22 Thread arshad hussain
On 8/22/2010 12:39 PM, Tapas Mishra wrote: He he tried what you said. I wont 2 cents :) It did not worked Ok. So you included linux/syscalls.h instead of sys/syscalls.h and still it cannot find __NR_exit symbol. Right? Or it compiled successfully but did not load. --snip--

Re: address space of kernel thread

2010-08-22 Thread arshad hussain
On 8/22/2010 3:58 PM, Parmenides wrote: Hi, It's said that kernel thread is running in kernel address space only. I wonder what's the meaning of running in kernel address space only. X86 Architecture defines 4 logical rings which acts as a protection mechanism. When code is running in

Re: Unable to remove sctp kernel module.

2010-08-21 Thread arshad hussain
On Sat, Aug 21, 2010 at 4:09 PM, Padmalochan Moharana padmalochan.mohar...@nethawk.exfo.com wrote: Dear All, To load the sctp module in kernel I have used the modprobe command. But when I am trying to remove the sctp module using rmmod command with –f option, kernel shows below error message

Re: rep instruction without ecx's control

2010-08-20 Thread arshad hussain
On Fri, Aug 20, 2010 at 8:16 AM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, In the following code, the nop instruction prefixed by rep will execute several times. How many times the instruction executes  is controlled by ecx register. But, there is no explicit setting of ecx Looks

Re: Reason for %ss==%ds?

2010-08-18 Thread arshad hussain
On Tue, Aug 17, 2010 at 10:45 PM, nascent mind nascent.m...@gmail.com wrote: Hi,    I am trying to understand the boot process of the kernel and I am not able to understand why the stack segment should be equal to the data segment here

Re: Adding command line option in kernel.

2010-08-03 Thread arshad hussain
On Tue, Aug 3, 2010 at 7:56 PM, Victor Rodriguez vm.ro...@gmail.com wrote: On Tue, Aug 3, 2010 at 2:21 AM, Raahi Mehra raah...@gmail.com wrote: Hi, I wish to add a new command line option in my kernel. Can anybody help me with steps to achieve that ?? As I read somewhere that __setup is now

Re: Need List of Books

2010-08-03 Thread arshad hussain
On Fri, Jul 30, 2010 at 6:27 PM, Usman S. Ansari usman.ans...@yahoo.com wrote: Which OS dev site ? http://wiki.osdev.org/Main_Page . Can you send link + link for Arch manual for Intel / AMD you mentioned. http://www.intel.com/products/processor/manuals/

Re: Need List of Books

2010-07-30 Thread arshad hussain
My 2 cents ... Additional to the Linux specific books mentioned in this thread. To get the _philosophy_ behind the Linux kernel / or any operating system you must read one of the x86 architecture books. Or any other architecture you are interested in. My pick for x86. These are also available in

Re: multiple alternate superblocks

2010-07-08 Thread arshad hussain
On Wed, Jul 7, 2010 at 6:37 PM, Manish Katiyar mkati...@gmail.com wrote: On 7/7/10, Onkar Mahajan kern.de...@gmail.com wrote: Is it possible to supply multiple alternate superblocks while doing a mount in Linux ? If I got your question correctly, It is already being done that way

Re: doubt regarding partition table and bootloader

2010-06-27 Thread arshad hussain
On Mon, Jun 28, 2010 at 3:40 AM, raja roy raja.ro...@gmail.com wrote: Hi All,   I was trying to understand the booting steps,  BIOS loads the first sector (MBR) of a bootable device(considering disk only) in RAM (:7c00)and then jumps to that addr to execute the primary boot loader

Re: Getting driver module name from device node?

2010-06-22 Thread arshad hussain
lshal command can spit out some interesting stuff too. This is what i got for my network card. Thanks -- snip --- udi = '/org/freedesktop/Hal/devices/pci_14e4_169c' info.linux.driver = 'tg3' (string) info.parent = '/org/freedesktop/Hal/devices/pci_1002_4371' (string) info.product =

Re: basic ques --- installation from rpm and source

2010-05-25 Thread arshad hussain
When you did make install it has overwritten the files created by e2fsprogs rpm. Thanks -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: retaining messages from previous boot - /var/log/messages OR /var/log/boot.log

2010-05-18 Thread arshad hussain
On Wed, May 19, 2010 at 5:36 AM, arshad hussain arshad.su...@gmail.com wrote: On Sun, May 16, 2010 at 10:03 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, May 15, 2010 at 18:50, Onkar Mahajan kern.de...@gmail.com wrote: The Situation is this : I have compiled Xen Hypervisor

Re: retaining messages from previous boot - /var/log/messages OR /var/log/boot.log

2010-05-18 Thread arshad hussain
On Sun, May 16, 2010 at 10:03 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, May 15, 2010 at 18:50, Onkar Mahajan kern.de...@gmail.com wrote: The Situation is this : I have compiled Xen Hypervisor , and it just hangs at some point during the boot. I want to send to a relevant

Re: retaining messages from previous boot - /var/log/messages OR /var/log/boot.log

2010-05-15 Thread arshad hussain
On Sat, May 15, 2010 at 9:50 AM, Onkar Mahajan kern.de...@gmail.com wrote: I want to retain the messages from all the previous boots in the /var/log/messages How do I append the messages in /var/log/messages rather than create a new file each time during the boot ? Regards, Onkar One

Re: retaining messages from previous boot - /var/log/messages OR /var/log/boot.log

2010-05-15 Thread arshad hussain
On Sat, May 15, 2010 at 3:04 PM, Onkar Mahajan kern.de...@gmail.com wrote: But some linux distributions do keep the previous boot logs , this will help me to know where the kernel Paniced ?? Regards, Onkar On Sat, May 15, 2010 at 2:33 PM, arshad hussain arshad.su...@gmail.com wrote

Re: Doubts in System call mechanism in linux

2010-05-11 Thread arshad hussain
On Tue, May 11, 2010 at 9:50 AM, Daniel (Youngwhan) Song breadn...@gmail.com wrote: On 5/10/10 6:37 PM, Balachandar wrote: Hello,   We transit from ring3 to ring0 using 'int' or the new 'syscall/sysenter' instruction. Does that mean that the page tables and other stuffs that needs to be

Re: linux0.01 build failed

2010-04-15 Thread arshad hussain
On Wed, Apr 14, 2010 at 10:21 PM, Manish Regmi regmi.man...@gmail.com wrote: On Wed, Apr 14, 2010 at 11:39 AM, Sameer Rahmani lxsam...@gmail.com wrote: i'm new to kernel hacking and as i read in kernelnewbies.org it is a good idea to begin with linux0.01 even if you managed to compile it. I

Re: linux0.01 build failed

2010-04-15 Thread arshad hussain
On Thu, Apr 15, 2010 at 11:42 AM, Sameer Rahmani lxsam...@gmail.com wrote: i read that before but my problem is ( my 64bit linux box) it seems linux0.01 do not compiled with a 64bit gcc If you want to compile 32bit binary, on linux which is 64bit -m32 gcc option must be used. I guess you also

Re: need to get blocks per group in user space

2010-04-07 Thread arshad hussain
On Wed, Apr 7, 2010 at 1:10 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Apr 7, 2010 at 1:06 PM, nidhi mittal hada nidhimitta...@gmail.com wrote: hello All I want to get some of filesystem specific information like blocksize , s_blocks_per_group etc in userspace c program How do i

Re: need to get blocks per group in user space

2010-04-07 Thread arshad hussain
On Wed, Apr 7, 2010 at 1:37 PM, arshad hussain arshad.su...@gmail.com wrote: On Wed, Apr 7, 2010 at 1:10 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Apr 7, 2010 at 1:06 PM, nidhi mittal hada nidhimitta...@gmail.com wrote: hello All I want to get some of filesystem specific

Re: Help needed for setup a simulation environment.

2010-03-07 Thread arshad hussain
With vmware its the easiest to setup quickly. And if you are worried about large linux distro , use ubuntu server distro, this is really small. Few apt-gets for linux-headers... and build-essentials should get you going. This will also avoid blockades like ... I can setup QEMU. But, I will be

Re: how to support long file name in vfat format under linux

2009-10-13 Thread arshad hussain
I have another question right now. I write a autorun.sh to detect the hotplug event and mount the disk. But if I got a usb HD that have vfat, NTFS and ext3 formats at different partitions, how could I write one mount command for all cases? I cannot mount every /dev/sda[1-9] as -t vfat,

Re: determine SCSI HBA

2009-07-20 Thread arshad hussain
On Mon, Jul 20, 2009 at 12:50 PM, arshad hussainarshad.su...@gmail.com wrote: On Mon, Jul 20, 2009 at 11:44 AM, Leena M.kernm...@gmail.com wrote: Hi All, here are few outputs , based on this can I say that there is a SCSI adapter (which I cant see on my MB)  somewhere. le...@debian:~$ ls

Re: filesystem info

2009-03-14 Thread arshad hussain
On Sat, Mar 14, 2009 at 2:00 PM, krushnaal pai krisonea...@gmail.com wrote: is there any link/e-book where the filesystem source code of 2.6.* kernel is explained or plz suggest an ebook on linux 2.6 filesystems( in detail ) Not an ebook. But it has detail chapters on vfs and ext.

Re: Recovering Partition using linux

2009-02-19 Thread arshad hussain
On Thu, Feb 19, 2009 at 9:23 PM, Rishi Bhushan Agrawal postri...@gmail.com wrote: yes all the data has been recovered back and even the directory structure is intact. But I want to find a proper solution to these kind of problems. So I have not deleted the partition and still want to recover

Re: Recovering Partition using linux

2009-02-19 Thread arshad hussain
On Fri, Feb 20, 2009 at 7:30 AM, Rishi Bhushan Agrawal postri...@gmail.com wrote: On Thu, Feb 19, 2009 at 6:47 PM, arshad hussain arshad.su...@gmail.com wrote: On Thu, Feb 19, 2009 at 9:23 PM, Rishi Bhushan Agrawal postri...@gmail.com wrote: yes all the data has been recovered back

Re: module state:permanent

2008-12-10 Thread arshad hussain
On Wed, Dec 10, 2008 at 3:05 PM, Balamurugan Subbian [EMAIL PROTECTED] wrote: Even i faced the same problem. After analysis i found that It should not create problem in removing the mod as well if you are using init_module function. If you are using a different name for the startup function

Re: compiling kernel module for UML

2008-10-04 Thread arshad hussain
On Thu, Oct 2, 2008 at 9:20 PM, Chetan Nanda [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 11:50 PM, arshad hussain [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 11:12 PM, Chetan Nanda [EMAIL PROTECTED] wrote: Hi All, I am trying my hands with User mode Linux. I am able

Re: compiling kernel module for UML

2008-09-30 Thread arshad hussain
On Tue, Sep 30, 2008 at 11:12 PM, Chetan Nanda [EMAIL PROTECTED] wrote: Hi All, I am trying my hands with User mode Linux. I am able to configure and kernel 2.6.24 under UML. Next It am trying to compile kernel module (so that modules can be insmod into running UML). But not able to

Re: Writing onto disk sector

2008-08-20 Thread arshad hussain
Sorry. Missed the list. On Wed, Aug 20, 2008 at 1:21 PM, Akhil [EMAIL PROTECTED] wrote: I am not sure whether this is a relevant question...please ignore if it seems nonsense Is it possible in linux (2.6 or 2.4) to write/read directly onto a particular disk sector? If yes , how? I hope

Re: configuring the Kernel

2008-08-11 Thread arshad hussain
On 8/11/08, onnm [EMAIL PROTECTED] wrote: Hi , that was an Idea taken from your book Greg (LKN !) :-) but I am really looking out to automate this task - this will save lot of time and put in that time into something more interesting ;-) ! On Mon, Aug 11, 2008 at 10:27 AM, Greg KH [EMAIL

Re: how to kernel debugging

2008-05-05 Thread arshad hussain
Missed the forum Again!!! On 5/5/08, arshad hussain [EMAIL PROTECTED] wrote: On 5/5/08, amol verule [EMAIL PROTECTED] wrote: hi to all, i am new to kernel .can any one tell me about document for debugging kernel. is any patch is require for it i.e kdb kgdb? Yes. IMHO even

Re: SMP and ACPI.

2008-03-18 Thread arshad hussain
I hope, there is some way out. Otherwise, the option i'm thinking of is - running the Redmond OS as host and installing the linux server in a uniprocessor virtual machine. Suggestions gladly welcome. If your idea is to run linux and not the latest kernel , then give OpenSUSE 10.2

Re: question about kernel panic

2008-03-06 Thread arshad hussain
On 3/6/08, vichy [EMAIL PROTECTED] wrote: Dear all: I download Linux 2.6.20.10 and make the kernel by selecting EVERY ide device driver But I reboot it with a kernel panic like below: Not syncing: VFS: unable to mount root fs on unknown-block (0,0) Could someone tell me where I go wrong?

Re: question about kernel panic

2008-03-06 Thread arshad hussain
:* arshad hussain [mailto:[EMAIL PROTECTED] *Sent:* Thursday, March 06, 2008 4:14 PM *To:* [EMAIL PROTECTED] *Cc:* kernelnewbies@nl.linux.org *Subject:* Re: question about kernel panic On 3/6/08, *vichy* [EMAIL PROTECTED] wrote: Dear all: I download Linux 2.6.20.10 and make the kernel

Re: question about kernel panic

2008-03-06 Thread arshad hussain
BTW, how could I get the old configuration, since I install the present OS by Fedora8-install-DVD.iso Also /proc/.config.gz has your configuration for the running kernel. *rom:* arshad hussain [mailto:[EMAIL PROTECTED] *Sent:* Thursday, March 06, 2008 5:17 PM *To:* [EMAIL PROTECTED] *Cc

Re: unclean root file-system after shutting down from single-user-mode

2008-02-13 Thread arshad hussain
The problem comes when stopping the system. The only way to do it is by pressing CTRL+ALT+DEL as CTRL+C does not work in that mode. Unfortunately, by using CTRL+ALT+DEL combination, Linux kernel does the unclean unmounting of root filesystem. This causes the file-system check on next boot

Re: Can a filesystem be mounted twice?

2008-02-12 Thread arshad hussain
On 2/13/08, Raseel Bhagat [EMAIL PROTECTED] wrote: Hi, On Feb 13, 2008 7:37 AM, Peter Teoh [EMAIL PROTECTED] wrote: I attempted to mount the different harddisk to the same logical filesystem (the other way is multiple logical filesystem to the same harddisk, or double mounting, which i

Fwd: driver associated with device

2008-01-30 Thread arshad hussain
-- Forwarded message -- From: arshad hussain [EMAIL PROTECTED] Date: Jan 31, 2008 12:07 PM Subject: Re: driver associated with device To: Onkar [EMAIL PROTECTED] On 1/31/08, Onkar [EMAIL PROTECTED] wrote: How to get the driver associated with the device ? for e.g. dirver

Re: scull device driver query !!

2008-01-07 Thread arshad hussain
On Jan 6, 2008 6:58 PM, Onkar [EMAIL PROTECTED] wrote: Hi all, i am implementing scull (character device driver in LDD : chapter 3 ) , in that I found :: Please refer to Linux Device Drivers Rubunu et al , 3/e.pg 57 ssize_t scull_read(struct file *filp, char __user *buf, size_t

Re: Debugging functions for kernel modules

2007-12-31 Thread arshad hussain
On 12/31/07, Manish Katiyar [EMAIL PROTECTED] wrote: Hi, Do we have any helper functions present in the kernel code to print the information about commonly used data structures in the code which might help in debugging. For example something like : void print_buffer_head(struct

Re: Ext3 layout and I/O performace

2007-12-27 Thread arshad hussain
Sorry , missed the forum. On 12/27/07, arshad hussain [EMAIL PROTECTED] wrote: On 12/27/07, Wang Yu [EMAIL PROTECTED] wrote: My questions are: 1.Why the performances under different subdirs varies so much? for example in /mnt/test/0 the performance is 72/80, while in /mnt/test/1