Lines Matching defs:fdep
216 cap_rights_fde(const struct filedescent *fdep)
219 return (cap_rights_fde_inline(fdep));
233 struct filedescent *fdep;
239 fdep = fdeget_noref(fdp, fd);
240 if (fdep == NULL) {
247 seqc_write_begin(&fdep->fde_seqc);
248 fdep->fde_rights = *rights;
250 ioctls = fdep->fde_ioctls;
251 fdep->fde_ioctls = NULL;
252 fdep->fde_nioctls = 0;
255 fdep->fde_fcntls = 0;
256 seqc_write_end(&fdep->fde_seqc);
359 struct filedescent *fdep;
367 fdep = fdeget_noref(fdp, fd);
368 KASSERT(fdep != NULL,
371 ncmds = fdep->fde_nioctls;
375 cmds = fdep->fde_ioctls;
388 cap_ioctl_limit_check(struct filedescent *fdep, const u_long *cmds,
396 oncmds = fdep->fde_nioctls;
402 ocmds = fdep->fde_ioctls;
419 struct filedescent *fdep;
433 fdep = fdeget_noref(fdp, fd);
434 if (fdep == NULL) {
439 error = cap_ioctl_limit_check(fdep, cmds, ncmds);
443 ocmds = fdep->fde_ioctls;
444 seqc_write_begin(&fdep->fde_seqc);
445 fdep->fde_ioctls = cmds;
446 fdep->fde_nioctls = ncmds;
447 seqc_write_end(&fdep->fde_seqc);
488 struct filedescent *fdep;
509 fdep = fdeget_noref(fdp, fd);
510 if (fdep == NULL) {
515 count = fdep->fde_nioctls;
518 memcpy(cmdsp, fdep->fde_ioctls, sizeof(cmdsp[0]) * ncmds);
549 cap_fcntl_check_fde(struct filedescent *fdep, int cmd)
557 if ((fdep->fde_fcntls & fcntlcap) != 0)
577 struct filedescent *fdep;
593 fdep = fdeget_noref(fdp, fd);
594 if (fdep == NULL) {
599 if ((fcntlrights & ~fdep->fde_fcntls) != 0) {
604 seqc_write_begin(&fdep->fde_seqc);
605 fdep->fde_fcntls = fcntlrights;
606 seqc_write_end(&fdep->fde_seqc);
616 struct filedescent *fdep;
626 fdep = fdeget_noref(fdp, fd);
627 if (fdep == NULL) {
631 rights = fdep->fde_fcntls;