> 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
> 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
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
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
--- 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);
> >>>
> >>>
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
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
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.
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
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
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
--- 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
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
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
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
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
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
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
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
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
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
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
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
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
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);
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)
{
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
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
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
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
30 matches
Mail list logo