Lines Matching refs:ops
226 tnf_ops_t *ops;
236 ops = tnf_get_ops();
237 if (!ops)
240 ops->schedule.record_p = 0;
401 tnf_ops_t *ops;
409 ops = tnf_get_ops();
410 if (ops) {
416 if (ops->schedule.lwpid != _lwp_self())
417 ops->schedule.record_p = 0;
542 tnf_ops_t ops; /* allocated on stack */
567 /* initialize ops */
568 (void) memset(&ops, 0, sizeof (ops)); /* zero ops */
569 ops.mode = TNF_ALLOC_REUSABLE;
570 ops.alloc = tnfw_b_alloc;
571 ops.commit = tnfw_b_xcommit;
572 ops.rollback = tnfw_b_xabort;
581 if (thr_probe_setup != 0) thr_probe_setup(&ops);
617 tnf_ops_t *ops;
625 ops = thr_probe_getfunc_addr();
626 /* check ops to ensure function is idempotent */
627 if (ops != NULL) {
629 tnfw_b_release_block(&ops->wcb);
633 (void) thr_setspecific(tpd_key, ops);
639 ops = tnf_probe_getfunc();
640 if (ops != NULL) {
644 stashed_tpd = ops;
655 tnf_ops_t *ops;
660 ops = pthread_getspecific(tpd_key);
661 if (ops)
662 thr_probe_setup(ops);
666 ops = stashed_tpd;
667 if (ops)
668 probe_setup(ops);
680 tnf_ops_t *ops;
696 ops = tnf_get_ops();
697 if (ops == NULL) {
704 ops = pthread_getspecific(tpd_key);
707 ops = stashed_tpd;
712 * ops shouldn't be NULL. But, if it is, then we don't
716 if (ops) {
718 ops->busy = 1;
720 metatag_data->tag_desc(ops, metatag_data);
722 (void) ops->commit(&(ops->wcb));
723 ops->busy = 0;
787 * tnf_get_ops() returns the ops pointer (thread-private data), or NULL