smb_dev.c (5ee1ac46456da10a24fd822d1bb27dd0b816b488) smb_dev.c (d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b)
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

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

103 struct cdev **dev)
104{
105 int u;
106
107 if (*dev != NULL)
108 return;
109 if (dev_stdclone(name, NULL, NSMB_NAME, &u) != 1)
110 return;
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

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

103 struct cdev **dev)
104{
105 int u;
106
107 if (*dev != NULL)
108 return;
109 if (dev_stdclone(name, NULL, NSMB_NAME, &u) != 1)
110 return;
111 *dev = make_dev(&nsmb_cdevsw, unit2minor(u), 0, 0, 0600,
111 *dev = make_dev(&nsmb_cdevsw, u, 0, 0, 0600,
112 NSMB_NAME"%d", u);
113 dev_ref(*dev);
114}
115
116static int
117nsmb_dev_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
118{
119 struct smb_dev *sdp;

--- 302 unchanged lines hidden ---
112 NSMB_NAME"%d", u);
113 dev_ref(*dev);
114}
115
116static int
117nsmb_dev_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
118{
119 struct smb_dev *sdp;

--- 302 unchanged lines hidden ---