Lines Matching defs:ofp
2399 is_sendfile(struct file *fp, struct file *ofp)
2414 if (ofp->f_type != DTYPE_SOCKET)
2416 so = ofp->f_data;
2442 struct file *ofp;
2459 error = fget_write(td, out, &cap_pwrite_rights, &ofp);
2462 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0;
2464 if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0)
2500 error = fo_write(ofp, &auio, ofp->f_cred, flags, td);
2517 error = fo_seek(ofp, out_offset, SEEK_SET, td);
2520 fdrop(ofp, td);
2562 struct file *fp, *ofp;
2580 error = fget_unlocked(td, out, &cap_no_rights, &ofp);
2584 if (is_regular_file(fp) && is_regular_file(ofp)) {
2589 if (is_sendfile(fp, ofp))
2595 if (error == ENOBUFS && (ofp->f_flag & FNONBLOCK) != 0)
2600 fdrop(ofp, td);