Re: thread info

2008-11-17 Thread Sandeep K Sinha
Refer Linux Kernel Development by Robert Love. You will get your answer. On Mon, Nov 17, 2008 at 8:52 PM, shyam Burkule <[EMAIL PROTECTED]> wrote: > Hi All, > > As I read from Understanding The Linux Kernel for each process, Linux packs > two different data structures in a single per-process

Re: question regarding linux freeze

2008-11-17 Thread Jagadeesh Bhaskar P
> 5. rmmod module Ok. Now there is no driver associated with your device. > 6. again use test program to open the device. But this time it gives seg > fault. You are again trying to access the device- after removing the driver? Why do you want to do this? > 7. Later When I try to insert module th

Re: question regarding linux freeze

2008-11-17 Thread Sri Ram K Vemulpali
Thanks for the response to everyone. I am attaching my program files. Here are the steps I followed. 1. first insmod module 2. get major number from /proc/devices 3. create device node with major number 4. use the test program to see whether the printk messages are printed to /var/log/messages

Re: gadget_serial

2008-11-17 Thread David Brownell
On Thursday 06 November 2008, Thomas Rega wrote: > following lines in Documentation/usb/gadget_serial.txt: > > ---8<--- > Versions of the gadget serial driver are available for the > 2.4 Linux kernels, but this document assumes you are using > version 2.3 or later of the gadget serial driver in a

question regarding IO-mapping

2008-11-17 Thread sudheer.divakaran
Hi, In the file Documentation/IO-mapping.txt it has been written as follows "-- Now, just as an example, on the PReP (PowerPC Reference Platform), the CPU sees a memory map something like this (this is from memory): 0-2 GB "real memory" 2 GB-3 GB "system

Linux kernel test suite

2008-11-17 Thread Usman S. Ansari
What test suite is ran when new Linux kernel is released. I am perticularly interested in socket api and networking subsystem testing. Thanks Usman -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.o

Re: need help on writing a fs-module

2008-11-17 Thread Peter Teoh
u posted right...but i don't understand your question On Wed, Nov 12, 2008 at 9:47 PM, <[EMAIL PROTECTED]> wrote: > Hello, > > I want to write a fs, that caches the content of another fs to disc, so the > final fs should work with two discs. eg"myfs" will cache an existing ext3 fsto ano

mpage_readpage()

2008-11-17 Thread Ruby
hi, all as I understand, ->readpage() will be invoked on address space object at some point when you do a syscall on read. for ext3, it will be ext3_readpage, which ask mpage_readpage() to do the job. what I don't follow is why the function doc right before mapge_readpage() claims "This isn't cal

Re: how to direct prink output to uart in init/main.c

2008-11-17 Thread loody
> I think you will need to write a small uart handling routine from scratch > (if this is new arch) in order to send the chars to the serial line. > Hi: thanks for your kind help. The location I want the printk works is at init/main.c and I am not sure the kernel serial driver is ready to use at so

Re: How to determine when kernel booting has completed ?

2008-11-17 Thread Mulyadi Santosa
Hi Manish... On Sat, Nov 15, 2008 at 5:22 PM, Manish Katiyar <[EMAIL PROTECTED]> wrote: > Hi, > > I got a simple (probably silly question) while we were trying to hook > a system call few days back in one of the threads posted earlier. > Let's say I want to log all the users/calls of someone calli

Re: question regarding linux freeze

2008-11-17 Thread Belisko Marek
Hi, On Sun, Nov 16, 2008 at 5:36 AM, Sri Ram K Vemulpali <[EMAIL PROTECTED]> wrote: > Hi all, > > I am writing a kernel module. Where in the module, major number is > allocated on fly (alloc_chrdev_region). And using major number from > /proc/devices I create a device node in /dev (mknod

Re: How to determine when kernel booting has completed ?

2008-11-17 Thread Manish Katiyar
On Mon, Nov 17, 2008 at 8:56 PM, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > Hi Manish... > > On Sat, Nov 15, 2008 at 5:22 PM, Manish Katiyar <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I got a simple (probably silly question) while we were trying to hook >> a system call few days back in one of the t

thread info

2008-11-17 Thread shyam Burkule
Hi All, As I read from Understanding The Linux Kernel for each process, Linux packs two different data structures in a single per-process memory area: a small data structure linked to the process descriptor, namely the thread_info structure, and the Kernel Mode process stack. Here I am not underst

Re: Should /proc/kallsyms contain the sys_call_table symbol?

2008-11-17 Thread Giannis Kozyrakis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mulyadi Santosa wrote: > Hi... > > On Mon, Nov 17, 2008 at 7:39 PM, Giannis Kozyrakis <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I'm doing some research, and i've noticed an odd thing in my opinion: >> >> 1. A

Re: need help on writing a fs-module

2008-11-17 Thread Santiago
Hello, as I got no response on my questions, I'd like to know why: - did I post in the wrong list (but as a beginner in kernel programming - I think, I'm a newbie) - was my question so silly, that noone likes to reply? If so, I would appreciate a hint on how to do it better. - is noone out th

Re: Should /proc/kallsyms contain the sys_call_table symbol?

2008-11-17 Thread Mulyadi Santosa
Hi... On Mon, Nov 17, 2008 at 7:39 PM, Giannis Kozyrakis <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm doing some research, and i've noticed an odd thing in my opinion: > > 1. According to all references, the /proc/kallsyms file contains all the > global kern

Should /proc/kallsyms contain the sys_call_table symbol?

2008-11-17 Thread Giannis Kozyrakis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm doing some research, and i've noticed an odd thing in my opinion: 1. According to all references, the /proc/kallsyms file contains all the global kernel symbols, and those of the modules too. [ NOT just the exported symbols like /proc/ksyms used t

Re: how to direct prink output to uart in init/main.c

2008-11-17 Thread Hinko Kocevar
loody wrote: > Dear all: > I try to porting linux on my platform and I can successfully jump to > start_kernel in init/main.c right now. > But I want to use uart as my printk target such that I can debug by > uart output messages. > I have surveyed kernel/printk.c and it seems vprintk finally print