Re: copy to/from user with irq disabled

2008-02-07 Thread Martin Candurra
On Feb 7, 2008 12:32 PM, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > Hi... > > On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > > hi everyone, > > > > is it allowed to use the copy from/to userspace with irq disabled ? > > Hm, it might block...don't you think? > > regards, > >

Re: copy to/from user with irq disabled

2008-02-07 Thread Thomas Petazzoni
Le Thu, 7 Feb 2008 18:19:07 +0200, "Ramagudi Naziir" <[EMAIL PROTECTED]> a écrit : > in iw_handler.h... and tried to understand why it is a problem.. This is a problem because copy_to_user() and copy_from_user() can block. So you're not allowed to use them in an atomic context (interrupt handler

Re: copy to/from user with irq disabled

2008-02-07 Thread Ramagudi Naziir
On Feb 7, 2008 6:04 PM, Martin Candurra <[EMAIL PROTECTED]> wrote: > > On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > > > is it allowed to use the copy from/to userspace with irq disabled ? > As Mulyadi said copy from/to user space may block (try to think that the > page you w

Re: copy to/from user with irq disabled

2008-02-07 Thread Scott Lovenberg
Mulyadi Santosa wrote: Hi... On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: hi everyone, is it allowed to use the copy from/to userspace with irq disabled ? Hm, it might block...don't you think? regards, Mulyadi. -- To unsubscribe from this list: send an email

Re: copy to/from user with irq disabled

2008-02-07 Thread Mulyadi Santosa
Hi... On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > hi everyone, > > is it allowed to use the copy from/to userspace with irq disabled ? Hm, it might block...don't you think? regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbie

copy to/from user with irq disabled

2008-02-07 Thread Ramagudi Naziir
hi everyone, is it allowed to use the copy from/to userspace with irq disabled ? thank you all naziir -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ