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 
)
inlinenoexcept

Add a rule.

Parameters
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.
Returns
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
l4_thread_modify_sender_add()

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: