L4Re – L4 Runtime Environment
L4::Thread::Modify_senders Class Reference

Wrapper class for modifying senders. More...

+ Collaboration diagram for L4::Thread::Modify_senders:

Public Member Functions

int add (l4_umword_t match_mask, l4_umword_t match, l4_umword_t del_bits, l4_umword_t add_bits) noexcept
 Add a rule. More...

Detailed Description

Wrapper class for modifying senders.

Use the add() function to add modification rules, and use modify_senders() to commit. Do not use the UTCB in between as it is used by add() and modify_senders().

Definition at line 334 of file thread.

Member Function Documentation

◆ add()

int L4::Thread::Modify_senders::add ( l4_umword_t  match_mask,
l4_umword_t  match,
l4_umword_t  del_bits,
l4_umword_t  add_bits 

Add a rule.

match_maskBitmask of bits to match the label.
matchBitmask that must be equal to the label after applying match_mask.
del_bitsBits to be deleted from the label.
add_bitsBits to be added to the label.
0 on success, <0 on error

In pseudo code: if ((sender_label & match_mask) == match) { sender_label = (sender_label & ~del_bits) | add_bits; }

Only the first match is applied.

See also

Definition at line 367 of file thread.

Referenced by L4Re::Util::Object_registry::unregister_obj().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: