Skip to content

irq_lock()/return/irq_unlock(key); #7

@TYuD

Description

@TYuD

Is the code below correct? After first return irq stay locked?

some_func()
{
	int key = irq_lock();
	if (...) return;
	...
	irq_unlock(key);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions