smb_dev.c (d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b) smb_dev.c (6bfa9a2d66dd0e00182017d6741d44e54d0b2cca)
1/*-
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 118 unchanged lines hidden (view full) ---

127 sdp = malloc(sizeof(*sdp), M_NSMBDEV, M_WAITOK);
128 dev->si_drv1 = (void*)sdp;
129 }
130 /*
131 * XXX: this is just crazy - make a device for an already passed device...
132 * someone should take care of it.
133 */
134 if ((dev->si_flags & SI_NAMED) == 0)
1/*-
2 * Copyright (c) 2000-2001 Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 118 unchanged lines hidden (view full) ---

127 sdp = malloc(sizeof(*sdp), M_NSMBDEV, M_WAITOK);
128 dev->si_drv1 = (void*)sdp;
129 }
130 /*
131 * XXX: this is just crazy - make a device for an already passed device...
132 * someone should take care of it.
133 */
134 if ((dev->si_flags & SI_NAMED) == 0)
135 make_dev(&nsmb_cdevsw, minor(dev), cred->cr_uid, cred->cr_gid, 0700,
136 NSMB_NAME"%d", dev2unit(dev));
135 make_dev(&nsmb_cdevsw, dev2unit(dev), cred->cr_uid,
136 cred->cr_gid, 0700, NSMB_NAME"%d", dev2unit(dev));
137 bzero(sdp, sizeof(*sdp));
138/*
139 STAILQ_INIT(&sdp->sd_rqlist);
140 STAILQ_INIT(&sdp->sd_rplist);
141 bzero(&sdp->sd_pollinfo, sizeof(struct selinfo));
142*/
143 s = splimp();
144 sdp->sd_level = -1;

--- 277 unchanged lines hidden ---
137 bzero(sdp, sizeof(*sdp));
138/*
139 STAILQ_INIT(&sdp->sd_rqlist);
140 STAILQ_INIT(&sdp->sd_rplist);
141 bzero(&sdp->sd_pollinfo, sizeof(struct selinfo));
142*/
143 s = splimp();
144 sdp->sd_level = -1;

--- 277 unchanged lines hidden ---