Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_bus.c
Show First 20 Lines • Show All 6,031 Lines • ▼ Show 20 Lines | static struct cdevsw devctl2_cdevsw = { | ||||
.d_ioctl = devctl2_ioctl, | .d_ioctl = devctl2_ioctl, | ||||
.d_name = "devctl2", | .d_name = "devctl2", | ||||
}; | }; | ||||
static void | static void | ||||
devctl2_init(void) | devctl2_init(void) | ||||
{ | { | ||||
make_dev_credf(MAKEDEV_ETERNAL, &devctl2_cdevsw, 0, NULL, | make_dev_credf(MAKEDEV_ETERNAL, &devctl2_cdevsw, 0, NULL, | ||||
UID_ROOT, GID_WHEEL, 0600, "devctl2"); | UID_ROOT, GID_WHEEL, 0644, "devctl2"); | ||||
} | } | ||||
/* | /* | ||||
* For maintaining device 'at' location info to avoid recomputing it | * For maintaining device 'at' location info to avoid recomputing it | ||||
*/ | */ | ||||
struct device_location_node { | struct device_location_node { | ||||
const char *dln_locator; | const char *dln_locator; | ||||
const char *dln_path; | const char *dln_path; | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |