1/*- 2 * Copyright (c) 1995 Ugen J.S.Antsilevich 3 * 4 * Redistribution and use in source forms, with and without modification, 5 * are permitted provided that this entire comment appears intact. 6 * 7 * Redistribution in binary form may occur without any restrictions. 8 * Obviously, it would be nice if you gave credit where credit is due 9 * but requiring it would be too onerous. 10 * 11 * This software is provided ``AS IS'' without any warranties of any kind. 12 * 13 * Snoop stuff. 14 * 15 */ 16 17#include <sys/cdefs.h> |
18__FBSDID("$FreeBSD: head/sys/dev/snp/snp.c 144389 2005-03-31 12:19:44Z phk $"); |
19 20#include <sys/param.h> 21#include <sys/systm.h> 22#include <sys/fcntl.h> 23#include <sys/filio.h> 24#include <sys/malloc.h> 25#include <sys/tty.h> 26#include <sys/conf.h> --- 611 unchanged lines hidden (view full) --- 638 if (*dev != NULL) 639 return; 640 if (dev_stdclone(name, NULL, "snp", &u) != 1) 641 return; 642 i = clone_create(&snpclones, &snp_cdevsw, &u, dev, 0); 643 if (i) 644 *dev = make_dev(&snp_cdevsw, unit2minor(u), 645 UID_ROOT, GID_WHEEL, 0600, "snp%d", u); |
646 if (*dev != NULL) { 647 dev_ref(*dev); |
648 (*dev)->si_flags |= SI_CHEAPCLONE; |
649 } |
650} 651 652static int 653snp_modevent(mod, type, data) 654 module_t mod; 655 int type; 656 void *data; 657{ --- 29 unchanged lines hidden --- |