Lines Matching refs:fp
32 extract_label_info(ctf_file_t *fp, const ctf_lblent_t **ctl, uint_t *num_labels)
39 if (fp->ctf_version < CTF_VERSION_2)
40 return (ctf_set_errno(fp, ECTF_NOTSUP));
42 h = (const ctf_header_t *)fp->ctf_data.cts_data;
45 *ctl = (const ctf_lblent_t *)(fp->ctf_buf + h->cth_lbloff);
55 ctf_label_topmost(ctf_file_t *fp)
61 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR)
65 (void) ctf_set_errno(fp, ECTF_NOLABELDATA);
69 if ((s = ctf_strraw(fp, (ctlp + num_labels - 1)->ctl_label)) == NULL)
70 (void) ctf_set_errno(fp, ECTF_CORRUPT);
80 ctf_label_iter(ctf_file_t *fp, ctf_label_f *func, void *arg)
88 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR)
92 return (ctf_set_errno(fp, ECTF_NOLABELDATA));
95 if ((lname = ctf_strraw(fp, ctlp->ctl_label)) == NULL) {
98 return (ctf_set_errno(fp, ECTF_CORRUPT));
138 ctf_label_info(ctf_file_t *fp, const char *lname, ctf_lblinfo_t *linfo)
146 if ((rc = ctf_label_iter(fp, label_info_cb, &cb_arg)) == CTF_ERR)
150 return (ctf_set_errno(fp, ECTF_NOLABEL));