Re: Locking and interrupt handlers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Sep 18, 2009 at 2:52 AM, Pei Lin <telent997@xxxxxxxxx> wrote:
2009/9/18 Michael Blizek <michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> Hi!
>
> On 14:45 Fri 18 Sep     , Pei Lin wrote:
>
> ...
>
>> This problem is so weird i think. why u need do this check. And you
>> design your functions and why not know
>> the code run in which level ?  linux is totally opensouce and
>> transparent for programmers.
>
> He is programming a library which should be callable in both interrupt and non
> interrupt context.
>
ISR require short simple and do fast.... most time it only do some
work as set/check hardware register or set some flags.
i don't think the things above make more sense.
what's your opinion, michi?


>        -Michi
> --
> programing a layer 3+4 network protocol for mesh networks
> see http://michaelblizek.twilightparadox.com
>
>



--
Best Regards
Lin


Lin,

>ISR require short simple and do fast.... most time it only do some
>work as set/check hardware register or set some flags.

This is what one reads in books or does in small drivers like keypad driver.

The use case which I am talking about is a real life scenario. One might need to
update a data structure from ISRs too. In my case it is a tree which might make
it look more complex. But trust me, my intentions are good and my heart is in
right place. Nothing bad is going to happen. So let me attempt it :-).

I assume that I have convinced you now!


-Leo.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux