void xenkernfs_init(void) { kernfs_entry_t *dkt; KERNFS_ALLOCENTRY(dkt, M_TEMP, M_WAITOK); KERNFS_INITENTRY(dkt, DT_DIR, "xen", NULL, KFSsubdir, VDIR, DIR_MODE); kernfs_addentry(NULL, dkt); kernxen_pkt = KERNFS_ENTOPARENTDIR(dkt); }
void xenprivcmd_init(void) { kernfs_entry_t *dkt; kfstype kfst; kfst = KERNFS_ALLOCTYPE(xenprivcmd_fileops); KERNFS_ALLOCENTRY(dkt, M_TEMP, M_WAITOK); KERNFS_INITENTRY(dkt, DT_REG, "privcmd", NULL, kfst, VREG, XENPRIVCMD_MODE); kernfs_addentry(kernxen_pkt, dkt); }