PCI BAR re-configuration - (x86 too)

2008-11-05 Thread Mayank Kaushik
Adding to Deepak's question: On Thu, Oct 30, 2008 at 11:07 PM, Peerless Deepak <[EMAIL PROTECTED]>wrote: > Hi , > > Sorry forgot to append the question. > > On Fri, Oct 31, 2008 at 8:58 AM, Peerless Deepak > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I am trying to reassign bus numbers and co

processes and swapping

2008-11-05 Thread Sukanto Ghosh
Hi, Couple of questions: 1. How to determine the number of processes in memory ? (inside kernel code, not shell : ps -ef | wc -l ) 2. Is there any provision for swapping out entire process in linux (as solaris has) ? If no, then how to make sure that a process all of whose pages have been swap

Re: Monitoring process end under Kernel

2008-11-05 Thread MinChan Kim
On Thu, Nov 6, 2008 at 4:01 AM, Jonathan 'Arrouan' ROUZAUD-CORNABAS <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm developping a kernel module that will monitore struct (or something > else) to generate event (or traces) when a process is over (i.e. its

Re: Monitoring process end under Kernel

2008-11-05 Thread sahlot arvind
Since all processes are forked out of some already existing process, I guess you can place a hook in the implementation of fork. Maybe inside kernel/sched.c. Similarly look for the function which cleans up the process information when it gets over, that should be the place to put in the other hook.

Monitoring process end under Kernel

2008-11-05 Thread Jonathan 'Arrouan' ROUZAUD-CORNABAS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm developping a kernel module that will monitore struct (or something else) to generate event (or traces) when a process is over (i.e. its PID disappear from the PID/PPID tree). Currently, I can do that by monitoring the /proc directory but I am

Re: unable to rmmod

2008-11-05 Thread sahlot arvind
I am not sure but I think once oops happens then you may or may not remove the module. I think it really depends on how much the oops has affected the system. Try force remove though but I vaguely recall the same problem and I had to resort to reboot. On Wed, Nov 5, 2008 at 7:28 AM, <[EMAIL PROTEC

Re: Reg : module init and exit function

2008-11-05 Thread sahlot arvind
>The reason should be we are never going to unload the module. once the >linux is shutdown its going to poweroff the cpu so no need to cleanup. But what if there are some operations specified in the exit function of module for cleaning up, which is specific to the module e.g. flushing some module

RE: unable to rmmod

2008-11-05 Thread Madhukar.Mythri
> Hi > i m facing this prob from long that when i use a module which i have just inserted. > now suppose by mistake some kernel oops occur null pointer exception lets say .. > now my program which was using the function of module is closed . > so in my knowledge no one is using my module now.

Re: unable to rmmod

2008-11-05 Thread Henrik Austad
On Wednesday 05 November 2008 12:43:06 Manish Katiyar wrote: > On Wed, Nov 5, 2008 at 4:23 PM, nidhi mittal <[EMAIL PROTECTED]> wrote: > > Hi > > i m facing this prob from long that when i use a module which i have just > > inserted. > > now suppose by mistake some kernel oops occur null pointer ex

Re: unable to rmmod

2008-11-05 Thread Manish Katiyar
On Wed, Nov 5, 2008 at 4:23 PM, nidhi mittal <[EMAIL PROTECTED]> wrote: > Hi > i m facing this prob from long that when i use a module which i have just > inserted. > now suppose by mistake some kernel oops occur null pointer exception lets > say .. > now my program which was using the function of

unable to rmmod

2008-11-05 Thread nidhi mittal
Hi i m facing this prob from long that when i use a module which i have just inserted. now suppose by mistake some kernel oops occur null pointer exception lets say .. now my program which was using the function of module is closed . so in my knowledge no one is using my module now. now i correcte

RE: Regd. mailing list filters.

2008-11-05 Thread srinivas.ramana
Hi Erik, Thanks a lot for the detailed explanation. Will take care from now on. But I still didn't understand why there is no disclaimer here, but its there when I sent to I2C mailing list(sender is this ID for both). Anyways, as you said best thing to use is webmail to avoid all these. Thanks

Re: Reg : module init and exit function

2008-11-05 Thread Mohamed Thalib .H
On Wed, 2008-11-05 at 13:24 +0500, Nauman Tahir wrote: > On Tue, Nov 4, 2008 at 11:03 AM, Santosh <[EMAIL PROTECTED]> wrote: > > Mohamed Thalib .H wrote: > >> > >> On Tue, 2008-11-04 at 11:14 +0530, Santosh wrote: > >>> > >>> Manish Katiyar wrote: > > On Tue, Nov 4, 2008 at 9:48 AM, Santo

Re: Reg : module init and exit function

2008-11-05 Thread Nauman Tahir
On Tue, Nov 4, 2008 at 11:03 AM, Santosh <[EMAIL PROTECTED]> wrote: > Mohamed Thalib .H wrote: >> >> On Tue, 2008-11-04 at 11:14 +0530, Santosh wrote: >>> >>> Manish Katiyar wrote: On Tue, Nov 4, 2008 at 9:48 AM, Santosh <[EMAIL PROTECTED]> wrote: > > Mohamed Thalib .H wrote: