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 informa

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 th

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. kind

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 partn

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 prog

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); if(example_dir=

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 i

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 exp

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 fi

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

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); > >>

sched.c function

2005-03-23 Thread sounak chakraborty
Dear sir, I am new to kernel. I want to know which function in the file sched.c or procedure is called to bring a process for processing in the CPU after context switching. Thanks in advance, Sounak Yahoo! India Matrimon

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 showe

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

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 threads

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