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

Function make_dev

freebsd/kern/kern_conf.c:873–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873struct cdev *
874make_dev(struct cdevsw *devsw, int unit, uid_t uid, gid_t gid, int mode,
875 const char *fmt, ...)
876{
877 struct cdev *dev;
878 va_list ap;
879 int res __unused;
880
881 va_start(ap, fmt);
882 res = make_dev_credv(0, &dev, devsw, unit, NULL, uid, gid, mode, fmt,
883 ap);
884 va_end(ap);
885 KASSERT(res == 0 && dev != NULL,
886 ("make_dev: failed make_dev_credv (error=%d)", res));
887 return (dev);
888}
889
890struct cdev *
891make_dev_cred(struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid,

Callers 15

zfsdev_attachFunction · 0.85
ipf_modloadFunction · 0.85
vchiq_initFunction · 0.85
krping_loaderFunction · 0.85
pf_loadFunction · 0.85
audit_pipe_initFunction · 0.85
audit_trigger_cdev_initFunction · 0.85
elan_drvinitFunction · 0.85
perfmon_init_devFunction · 0.85
smapi_attachFunction · 0.85
sgx_loadFunction · 0.85
fpgamgr_s10_attachFunction · 0.85

Calls 1

make_dev_credvFunction · 0.85

Tested by

no test coverage detected