Lines Matching refs:myast
334 chudxnu_private_chud_ast_callback(ast_t reasons, ast_t *myast)
341 if ((*myast & AST_CHUD_URGENT) && (reasons & (AST_URGENT | AST_CHUD_URGENT))) { // Only execute urgent callbacks if reasons specifies an urgent context.
342 *myast &= ~AST_CHUD_URGENT;
344 if (AST_URGENT == *myast) { // If the only flag left is AST_URGENT, we can clear it; we know that we set it, but if there are also other bits set in reasons then someone else might still need AST_URGENT, so we'll leave it set. The normal machinery in ast_taken will ensure it gets cleared eventually, as necessary.
345 *myast = AST_NONE;
351 if ((*myast & AST_CHUD) && (reasons & AST_CHUD)) { // Only execute non-urgent callbacks if reasons actually specifies AST_CHUD. This implies non-urgent callbacks since the only time this'll happen is if someone either calls ast_taken with AST_CHUD explicitly (not done at time of writing, but possible) or with AST_ALL, which of course includes AST_CHUD.
352 *myast &= ~AST_CHUD;
413 ast_t *myast = ast_pending();
416 *myast |= (AST_CHUD_URGENT | AST_URGENT);
418 *myast |= (AST_CHUD);