Re: Reading large /proc entry from kernel module

2005-03-09 Thread Kristian SÃrensen
On Wednesday 09 March 2005 16:17, Bob Bennett wrote: > Kristian SÃrensen cs.aau.dk> writes: > > Hi all! > > > > I have some trouble reading a 2346 byte /proc entry from our Umbrella > > kernel module. > > > > if (count != UMB_POLICY_SIZE) { > > printk("Umbrella: Error -

Re: Reading large /proc entry from kernel module

2005-03-09 Thread Bob Bennett
Kristian SÃrensen cs.aau.dk> writes: > > Hi all! > > I have some trouble reading a 2346 byte /proc entry from our Umbrella kernel > module. > if (count != UMB_POLICY_SIZE) { > printk("Umbrella: Error - /proc/umbrella is of invalid size\n"); > return -EFAULT;

Re: Reading large /proc entry from kernel module

2005-03-09 Thread Bob Bennett
Kristian Srensen ks at cs.aau.dk writes: Hi all! I have some trouble reading a 2346 byte /proc entry from our Umbrella kernel module. if (count != UMB_POLICY_SIZE) { printk(Umbrella: Error - /proc/umbrella is of invalid size\n); return -EFAULT;

Re: Reading large /proc entry from kernel module

2005-03-09 Thread Kristian Srensen
On Wednesday 09 March 2005 16:17, Bob Bennett wrote: Kristian Srensen ks at cs.aau.dk writes: Hi all! I have some trouble reading a 2346 byte /proc entry from our Umbrella kernel module. if (count != UMB_POLICY_SIZE) { printk(Umbrella: Error - /proc/umbrella is of

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Kristian Sørensen
On Wednesday 09 March 2005 00:04, Peter Chubb wrote: > > "Kristian" == Kristian Sørensen <[EMAIL PROTECTED]> writes: > > Kristian> Hi all! I have some trouble reading a 2346 byte /proc entry > Kristian> from our Umbrella kernel module. > > > Kristian> static int umb_proc_write(struct file

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Peter Chubb
> "Kristian" == Kristian Sørensen <[EMAIL PROTECTED]> writes: Kristian> Hi all! I have some trouble reading a 2346 byte /proc entry Kristian> from our Umbrella kernel module. Kristian> static int umb_proc_write(struct file *file, const char *buffer, Kristian>

Reading large /proc entry from kernel module

2005-03-08 Thread Kristian Sørensen
Hi all! I have some trouble reading a 2346 byte /proc entry from our Umbrella kernel module. Proc file is created write-only and I am able to write text to the file, and read it from kernel space. The function reading the entry is in short this: static int umb_proc_write(struct file *file,

Reading large /proc entry from kernel module

2005-03-08 Thread Kristian Sørensen
Hi all! I have some trouble reading a 2346 byte /proc entry from our Umbrella kernel module. Proc file is created write-only and I am able to write text to the file, and read it from kernel space. The function reading the entry is in short this: static int umb_proc_write(struct file *file,

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Peter Chubb
Kristian == Kristian Sørensen [EMAIL PROTECTED] writes: Kristian Hi all! I have some trouble reading a 2346 byte /proc entry Kristian from our Umbrella kernel module. Kristian static int umb_proc_write(struct file *file, const char *buffer, Kristian unsigned long

Re: Reading large /proc entry from kernel module

2005-03-08 Thread Kristian Sørensen
On Wednesday 09 March 2005 00:04, Peter Chubb wrote: Kristian == Kristian Sørensen [EMAIL PROTECTED] writes: Kristian Hi all! I have some trouble reading a 2346 byte /proc entry Kristian from our Umbrella kernel module. Kristian static int umb_proc_write(struct file *file, const char