Re: Unmap pages from a VMA

2007-07-31 Thread Vivek Kutal
Thomas Petazzoni wrote: Hi, Thanks for your answer. Le Mon, 30 Jul 2007 17:01:43 +0530, Vivek Kutal [EMAIL PROTECTED] a écrit : You could just reset the present bit of the pages that you want to remap. Now the next access to these pages will generate a fault and your nopage() will be

need some help with debugging

2007-07-31 Thread Bernd Schubert
Hi, from time to time I see oopses which are rather hard to debug, at least gdb is not able to figure out which file:line the crashed function belongs to. Well, finding out the file:function() is not difficult using grep, kscope, etc, but this doesn't help me to know where it crashed there.

Re: need some help with debugging

2007-07-31 Thread Thomas Petazzoni
Hi, Le Tue, 31 Jul 2007 13:58:33 +0200, Bernd Schubert [EMAIL PROTECTED] a écrit : [ 4754.961940] IRQ [880f08f9] :bonding:bond_check_dev_link+0xcd/00 This function does: static int (* ioctl)(struct net_device *, struct ifreq *, int); [...] ioctl = slave_dev-do_ioctl; [...]

Re: need some help with debugging

2007-07-31 Thread Bernd Schubert
Thomas Petazzoni wrote: Hi, Le Tue, 31 Jul 2007 13:58:33 +0200, Bernd Schubert [EMAIL PROTECTED] a écrit : [ 4754.961940] IRQ [880f08f9] :bonding:bond_check_dev_link+0xcd/00 This function does: static int (* ioctl)(struct net_device *, struct ifreq *, int); [...] ioctl =

Re: need some help with debugging

2007-07-31 Thread Bernd Schubert
Macnish wrote: I don't know if it is the case here, but sometimes printk is your best friend on debug task. If it happens on our test cluster, certainly, I'm using printk quite extensively here, but this was on a customer system. Neither can we reboot the system there easily, nor can I

Re: need some help with debugging

2007-07-31 Thread Mulyadi Santosa
Hi Bernd... Just trying to share some thoughts here.. Two things I saw in your stack trace: 1. The crash (probably) happened when the kernel was executing interrupt handler. In that case, the code path is somewhat irregular. I mean, since interrupt handling could happen anytime, it doesn't

Re: need some help with debugging

2007-07-31 Thread Thomas Petazzoni
Hi, Le Tue, 31 Jul 2007 15:24:15 +0200, Bernd Schubert [EMAIL PROTECTED] a écrit : I don't think so, ioctl is checked first if (ioctl) { ... } This test only checks that 'ioctl != NULL', it doesn't check if ioctl points to some real existing code. Sincerly, Thomas -- Thomas

Literatura e História Fila Brasileiro

2007-07-31 Thread Alírio Barroso
Como criador e responsável pelo desenvolvimento das Linhagens Engenho e Juíz especializado da Raça Fila Brasileiro comunico a vocês que no endereço www.linhagemengenho.com está disponível documentário fotográfico e vídeos que retratam a nossa criação e trabalho genético para melhoria e preservação

Block device driver: How to handle hardware failure

2007-07-31 Thread beck0778
Hello, I am writing a block device driver to access Secure Digital (SD) cards over an SPI interface for an embedded (ppc) product. If the SD card is removed while it is still mounted, the kernel will continue to generate read and write requests for the driver, which it obviously can't

System calls in user and kernel space

2007-07-31 Thread Jug Venkatesh
Hi, I am writing new system calls for a security project, and I was wondering if there is any way to specify whether they will be accessible from user space or kernel space. Basically, I am writing a monitor that writes to a buffer, and I would like to be able to use this both in the

Re: [***SPAM*** Score/Req: 6.1/5.0] System calls in user and kernel space

2007-07-31 Thread Dinesh Bhat
Most likely you don't have the correct libraries in compile path. Post your Makefile with the errors you are getting and someone would be able to help you. Dinesh Jug Venkatesh wrote: Hi, I am writing new system calls for a security project, and I was wondering if there is any way to

Re: System calls in user and kernel space

2007-07-31 Thread Avishay Traeger
On Tue, 2007-07-31 at 14:08 -0400, Jug Venkatesh wrote: Hi, I am writing new system calls for a security project, and I was wondering if there is any way to specify whether they will be accessible from user space or kernel space. System calls are by definition called only from user-space.

Re: System calls in user and kernel space

2007-07-31 Thread Greg KH
On Tue, Jul 31, 2007 at 02:08:55PM -0400, Jug Venkatesh wrote: Hi, I am writing new system calls for a security project Um, you might want to stop right there :) Are you _sure_ you need a new system call? , and I was wondering if there is any way to specify whether they will be

pthreads

2007-07-31 Thread Jug Venkatesh
I've been looking online to try and find the location of the source code to the pthread library on fedora, and other than pthread.h, i'm getting nowhere. Any help would be appreciated. Additionally, can anyone tell me how exactly the pthread library performs scheduling, and how it relates to

Re: System calls in user and kernel space

2007-07-31 Thread Manish Katiyar
Hi, How is your program supposed to know that you have a syscall with that name ??..Did you defined the _syscalln() macro correctly in your program ? ...See adding a system call chapter from the book UKL. Hope that helps On 7/31/07, Greg KH [EMAIL PROTECTED] wrote: On Tue, Jul 31,

Re: pthreads

2007-07-31 Thread pradeep singh
On 8/1/07, Jug Venkatesh [EMAIL PROTECTED] wrote: I've been looking online to try and find the location of the source code to the pthread library on fedora, and other than pthread.h, i'm getting nowhere. Any help would be appreciated. Additionally, can anyone tell me how exactly the pthread

pthreads query

2007-07-31 Thread hari krishna angadi
hi, all, i am porting user code to kernel code. in user code pthreads is used i want respective kernel routine in kernel.pthread_mutex_t and PTHREAD_MUTEX_INITIALIZER is used in user code. Send instant messages to your online friends http://uk.messenger.yahoo.com

Re: System calls in user and kernel space

2007-07-31 Thread Parag N(पराग़)
Hi, On 7/31/07, Jug Venkatesh [EMAIL PROTECTED] wrote: Hi, I am writing new system calls for a security project, and I was wondering if there is any way to specify whether they will be accessible from user space or kernel space. Basically, I am writing a monitor that writes to a buffer, and

Re: pthreads

2007-07-31 Thread Ohad Ben-Cohen
Hi Jug, On 7/31/07, Jug Venkatesh [EMAIL PROTECTED] wrote: I've been looking online to try and find the location of the source code to the pthread library on fedora, and other than pthread.h, i'm getting The implementation of the pthread library is called NPTL. It is part of GNU libc. If you