fcr->sesn = 0;
cryptoioctl(dev, cmd, data, flag, p)	dev_t   dev;	u_long  cmd;	caddr_t data;	int     flag;	struct proc *p;{	struct file *f;	struct fcrypt *fcr;	int fd, error;	switch (cmd) {	case CRIOGET:		MALLOC(fcr, struct fcrypt *,		    sizeof(struct fcrypt), M_XDATA, M_WAITOK);		TAILQ_INIT(&fcr->csessions);		error = falloc(p, &f, &fd);		if (error) {			FREE(fcr, M_XDATA);			return (error);		}		f->f_flag = FREAD | FWRITE;		f->f_type = DTYPE_CRYPTO;		f->f_ops = &cryptofops;		f->f_data = (caddr_t)fcr;		*(u_int32_t *)data = fd;		break;	default:		error = EINVAL;		break;	}	return (error);}