Protected and Unprotected operations on Chain_control

Gedare Bloom gedare at gwu.edu
Wed Aug 12 16:52:25 UTC 2015


On Wed, Aug 12, 2015 at 11:48 AM, Saurabh Gadia <gadia at usc.edu> wrote:
> Hi,
>
> For operations related to manipulation of Chain_Node we have two modes for
> that: protected and unprotected. In protected access to chain we guard the
> operation by disabling the interrupts while in unprotected we don't guard
> it. Is it that we don't disable interrupts in unprotected mode because we
> are sure that ISR will not affect the operation and with protected ISR may
> affect the operation so we guard operation against it. When is protected and
> unprotected used in respect with the context?
>
Correct. "unprotected" means something else has already ensured mutual
exclusion.

> Thanks,
>
> Saurabh Gadia
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list