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

Function make_dev_credf

freebsd/kern/kern_conf.c:907–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907struct cdev *
908make_dev_credf(int flags, struct cdevsw *devsw, int unit, struct ucred *cr,
909 uid_t uid, gid_t gid, int mode, const char *fmt, ...)
910{
911 struct cdev *dev;
912 va_list ap;
913 int res;
914
915 va_start(ap, fmt);
916 res = make_dev_credv(flags, &dev, devsw, unit, cr, uid, gid, mode,
917 fmt, ap);
918 va_end(ap);
919
920 KASSERT(((flags & MAKEDEV_NOWAIT) != 0 && res == ENOMEM) ||
921 ((flags & MAKEDEV_CHECKNAME) != 0 && res != ENOMEM) || res == 0,
922 ("make_dev_credf: failed make_dev_credv (error=%d)", res));
923 return (res == 0 ? dev : NULL);
924}
925
926int
927make_dev_p(int flags, struct cdev **cdev, struct cdevsw *devsw,

Callers 8

log_drvinitFunction · 0.85
ttyconsdev_initFunction · 0.85
fildesc_drvinitFunction · 0.85
devinitFunction · 0.85
devctl2_initFunction · 0.85
devstat_allocFunction · 0.85
ctty_drvinitFunction · 0.85
contigmem_loadFunction · 0.85

Calls 1

make_dev_credvFunction · 0.85

Tested by

no test coverage detected