Re: Signals/ Communication from kernel to user!

2005-02-28 Thread Der Herr Hofrat
orce but you can simply run through the task list and kick the pid of your user-space app (example for 2.4 kernel): hofrat ---snip--- /* * Copywrite 2002 Der Herr Hofrat * License GPL V2 * Author [EMAIL PROTECTED] */ /* * run through the task list of linux search for the passed pid and send it *

Re: Signals/ Communication from kernel to user!

2005-02-28 Thread Der Herr Hofrat
the task list and kick the pid of your user-space app (example for 2.4 kernel): hofrat ---snip--- /* * Copywrite 2002 Der Herr Hofrat * License GPL V2 * Author [EMAIL PROTECTED] */ /* * run through the task list of linux search for the passed pid and send it * a SIGKILL . run as insmod pid

proc path_walk glitch ?

2005-02-20 Thread Der Herr Hofrat
HI ! I noticed a slight proc filesystem strangness in the 2.4.2X and 2.6.X (atleast up to 2.6.8). Assuming that process 8655 exists and is running long enough (ls -lR / or so) cd /proc/8655 kill -9 8655 ls /usr/bin/ls: .: Stale NFS file handle open(".",

proc path_walk glitch ?

2005-02-20 Thread Der Herr Hofrat
HI ! I noticed a slight proc filesystem strangness in the 2.4.2X and 2.6.X (atleast up to 2.6.8). Assuming that process 8655 exists and is running long enough (ls -lR / or so) cd /proc/8655 kill -9 8655 ls /usr/bin/ls: .: Stale NFS file handle open(.,

sizeof problem in kernel modules

2001-06-23 Thread Der Herr Hofrat
Hi ! can someone explain to me whats happening here ? --simple.c-- #include #include struct { short x; long y; short z; }bad_struct; struct { long y; short x; short z; }good_struct; int init_module(void){ printk("good_struct %d, bad_struct

sizeof problem in kernel modules

2001-06-23 Thread Der Herr Hofrat
Hi ! can someone explain to me whats happening here ? --simple.c-- #include linux/module.h #include linux/kernel.h struct { short x; long y; short z; }bad_struct; struct { long y; short x; short z; }good_struct; int init_module(void){ printk(good_struct %d, bad_struct