MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / crm_clear_bit

Function crm_clear_bit

include/crm_internal.h:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160char *generate_transition_key(int action, int transition_id, int target_rc, const char *node);
161
162static inline long long
163crm_clear_bit(const char *function, const char *target, long long word, long long bit)
164{
165 long long rc = (word & ~bit);
166
167 if(rc == word) {
168 /* Unchanged */
169 } else if (target) {
170 crm_trace("Bit 0x%.8llx for %s cleared by %s", bit, target, function);
171 } else {
172 crm_trace("Bit 0x%.8llx cleared by %s", bit, function);
173 }
174
175 return rc;
176}
177
178static inline long long
179crm_set_bit(const char *function, const char *target, long long word, long long bit)

Callers 1

clone_action_flagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected