Re: sched.c function

2005-03-24 Thread sounak chakraborty
> Tasks do not change their state without holding a > lock. (There is an exception, > but it is justified.) list after that.. > > So you want to record task state changes? That is > better done at the right > places in the kernel rather than traversing the task > list repeatedly (the > latter

Re: sched.c function

2005-03-24 Thread sounak chakraborty
> What exactly do you want to know about the > scheduler? > I had a wild idea to process one function that repeatedly checks the task list and find out which process is in which state At first i retrieve the information from fork.c in do_fork() and exit.x in do_exit() but the problem it

Re: sched.c function

2005-03-24 Thread sounak chakraborty
What exactly do you want to know about the scheduler? I had a wild idea to process one function that repeatedly checks the task list and find out which process is in which state At first i retrieve the information from fork.c in do_fork() and exit.x in do_exit() but the problem it showed

Re: sched.c function

2005-03-24 Thread sounak chakraborty
Tasks do not change their state without holding a lock. (There is an exception, but it is justified.) list after that.. So you want to record task state changes? That is better done at the right places in the kernel rather than traversing the task list repeatedly (the latter is not

Re: repeat a function after fixed time period

2005-03-23 Thread sounak chakraborty
--- linux-os <[EMAIL PROTECTED]> wrote: > On Wed, 23 Mar 2005, Arjan van de Ven wrote: > > > On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: > static void start_timer(void) > { > if(!atomic_read(>running)) > { > atomic_inc(>running); > >>> > >>>

repeat a function after fixed time period

2005-03-23 Thread sounak chakraborty
dear sir i want to call my own function inside the kernel after a fixed interval(i.e some kind of timer) how to do that which function i have to use to repeat the function anather way is that making my own system call which calls my function and this sytem call is being access by a user

timer implementation

2005-03-23 Thread sounak chakraborty
dear sir i want to implement a timer inside the kernel so that a specific function of mine is called after certain period of time how to implement that? thanks in advance sounak Yahoo! India Matrimony: Find your

error while implementing kill()

2005-03-23 Thread sounak chakraborty
dear sir, I am unable to use the system call kill(pid,sig).I have included the header file . I used it in a module to kill a process. The module is compiling properly but giving the following error while inserting the module, unresolved symbol kill() I am unable to track the bug here.

error while implementing kill()

2005-03-23 Thread sounak chakraborty
dear sir, I am unable to use the system call kill(pid,sig).I have included the header file signal.h. I used it in a module to kill a process. The module is compiling properly but giving the following error while inserting the module, unresolved symbol kill() I am unable to track the bug

timer implementation

2005-03-23 Thread sounak chakraborty
dear sir i want to implement a timer inside the kernel so that a specific function of mine is called after certain period of time how to implement that? thanks in advance sounak Yahoo! India Matrimony: Find your

repeat a function after fixed time period

2005-03-23 Thread sounak chakraborty
dear sir i want to call my own function inside the kernel after a fixed interval(i.e some kind of timer) how to do that which function i have to use to repeat the function anather way is that making my own system call which calls my function and this sytem call is being access by a user

Re: repeat a function after fixed time period

2005-03-23 Thread sounak chakraborty
--- linux-os [EMAIL PROTECTED] wrote: On Wed, 23 Mar 2005, Arjan van de Ven wrote: On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: static void start_timer(void) { if(!atomic_read(info-running)) { atomic_inc(info-running); same race. No such race at

problem with process and threads

2005-03-18 Thread sounak chakraborty
dear sir The number of processes that are being created in fork.c() in function do_fork are less than the number of processes are being terminated in exit.c in function do_exit(). I am placing a printk() in both the above functions do_fork() and do_exit() and thus after compiling and

problem with process and threads

2005-03-18 Thread sounak chakraborty
dear sir The number of processes that are being created in fork.c() in function do_fork are less than the number of processes are being terminated in exit.c in function do_exit(). I am placing a printk() in both the above functions do_fork() and do_exit() and thus after compiling and

Error in creating /proc file

2005-03-14 Thread sounak chakraborty
dear sir, i am actually trying to create a thread directory in which files will be created by the name of the thread id which will contain the basic information about the thread (similar to process concept of kernel) but i want to the detail steps about how the kernel implements its process

Error in creating /proc file

2005-03-14 Thread sounak chakraborty
dear sir, i am actually trying to create a thread directory in which files will be created by the name of the thread id which will contain the basic information about the thread (similar to process concept of kernel) but i want to the detail steps about how the kernel implements its process

mounting and unmounting of /proc filesystem

2005-03-09 Thread sounak chakraborty
hi which file and function inside the kernel (is called) during the mounting of proc file system while system startup. Is it do_mount? And in which function does the unmounting of the proc file system during shutdown thanks sounak

mounting and unmounting of /proc filesystem

2005-03-09 Thread sounak chakraborty
hi which file and function inside the kernel (is called) during the mounting of proc file system while system startup. Is it do_mount? And in which function does the unmounting of the proc file system during shutdown thanks sounak

Boot sequence of /proc filesystem

2005-03-08 Thread sounak chakraborty
Hi, I am writing some piece of code in the linux kernel 2.6.8 , in the files linux-2.6.8/kernel/fork.c ( in function do_fork() ) and linux-2.6.8/kernel/exit.c ( in the function do_exit() ). My objective is to execute the code immediately after the kernel has mounted the /proc

Boot sequence of /proc filesystem

2005-03-08 Thread sounak chakraborty
Hi, I am writing some piece of code in the linux kernel 2.6.8 , in the files linux-2.6.8/kernel/fork.c ( in function do_fork() ) and linux-2.6.8/kernel/exit.c ( in the function do_exit() ). My objective is to execute the code immediately after the kernel has mounted the /proc

symlink to proc file

2005-03-06 Thread sounak chakraborty
dear sir i want to create a symbolic link to my own proc file system (which has been already created in /fs/proc/root.c) from the /kernel/fork.c how to do it i actually want to write inside the proc directory using the syslink what will be the syntax and the parameter passed could you plz

symlink to proc file

2005-03-06 Thread sounak chakraborty
dear sir i want to create a symbolic link to my own proc file system (which has been already created in /fs/proc/root.c) from the /kernel/fork.c how to do it i actually want to write inside the proc directory using the syslink what will be the syntax and the parameter passed could you plz

architecture to implement communication between static kernel with dynamic module

2005-03-03 Thread sounak chakraborty
there is one my_own module which i will insert whenever i like through insmod. thus when the module is loaded it will create a proc file now i want to send the structure variable of task_struct i.e p to the module from the kernel at point when the execution passes through forking a new process

architecture to implement communication between static kernel with dynamic module

2005-03-03 Thread sounak chakraborty
there is one my_own module which i will insert whenever i like through insmod. thus when the module is loaded it will create a proc file now i want to send the structure variable of task_struct i.e p to the module from the kernel at point when the execution passes through forking a new process

compilation problem of modules

2005-03-02 Thread sounak chakraborty
the code of the module that i written is as follows: #define MODULE #include #include #define MODULE_NAME "manti" struct manti { char mm[20]; }; static struct proc_dir_entry *example_dir; struct manti m1; int init_module(void) { example_dir=proc_mkdir(MODULE_NAME,NULL);

compilation problem of modules

2005-03-02 Thread sounak chakraborty
the code of the module that i written is as follows: #define MODULE #include linux/module.h #include linux/proc_fs.h #define MODULE_NAME manti struct manti { char mm[20]; }; static struct proc_dir_entry *example_dir; struct manti m1; int init_module(void) {

function called when a thread gets terminated

2005-01-17 Thread sounak chakraborty
dear sir i want to design a system moniter for linux could you just guide me on what will be the basic architerture like: i have thought of kernel(using printk)->logfile(myfile)->application but in order to make it real time .please correct me on this architecture and i am unable to find some

functions where threads gets exited

2005-01-17 Thread sounak chakraborty
dear sir i i want to know the information about any the threads (user and kernal both) that are being exited so which file/function is last called for exiting the threads. is is do_exit in exit.c or any other fuction i need the information about both the user level as well as kernal level

functions where threads gets exited

2005-01-17 Thread sounak chakraborty
dear sir i i want to know the information about any the threads (user and kernal both) that are being exited so which file/function is last called for exiting the threads. is is do_exit in exit.c or any other fuction i need the information about both the user level as well as kernal level

function called when a thread gets terminated

2005-01-17 Thread sounak chakraborty
dear sir i want to design a system moniter for linux could you just guide me on what will be the basic architerture like: i have thought of kernel(using printk)-logfile(myfile)-application but in order to make it real time .please correct me on this architecture and i am unable to find some