MCPcopy Create free account
hub / github.com/F-Stack/f-stack / make_dev_cred

Function make_dev_cred

freebsd/kern/kern_conf.c:890–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890struct cdev *
891make_dev_cred(struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid,
892 gid_t gid, int mode, const char *fmt, ...)
893{
894 struct cdev *dev;
895 va_list ap;
896 int res __unused;
897
898 va_start(ap, fmt);
899 res = make_dev_credv(0, &dev, devsw, unit, cr, uid, gid, mode, fmt, ap);
900 va_end(ap);
901
902 KASSERT(res == 0 && dev != NULL,
903 ("make_dev_cred: failed make_dev_credv (error=%d)", res));
904 return (dev);
905}
906
907struct cdev *
908make_dev_credf(int flags, struct cdevsw *devsw, int unit, struct ucred *cr,

Callers

nothing calls this directly

Calls 1

make_dev_credvFunction · 0.85

Tested by

no test coverage detected