Home
last modified time | relevance | path

Searched refs:maj (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dstore_cred.c92 maj = GSS_S_FAILURE;
98 maj = GSS_S_FAILURE;
109 return (maj);
174 if (GSS_ERROR(maj))
200 if (GSS_ERROR(maj))
201 return (maj);
205 if (GSS_ERROR(maj))
229 if (GSS_ERROR(maj))
234 if (GSS_ERROR(maj))
251 if (GSS_ERROR(maj))
[all …]
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevpolicy.c130 major_t maj; in loadprivs() local
133 if (modctl(MODGETMAJBIND, line, col - line + 1, &maj) in loadprivs()
160 char *maj; in loadpolicy() local
187 maj = strtok(line, "\n\t "); in loadpolicy()
189 if (maj == NULL) in loadpolicy()
195 if (strcmp(maj, "*") == 0) { in loadpolicy()
211 min = strchr(maj, ':'); in loadpolicy()
224 if (modctl(MODGETMAJBIND, maj, strlen(maj) + 1, in loadpolicy()
240 err_print(MINOR_TOO_LONG, maj, min); in loadpolicy()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkdev.c87 major_t maj; in __major() local
91 maj = (devnum >> ONBITSMINOR); in __major()
92 if (devnum == NODEV || maj > OMAXMAJ) { in __major()
99 maj = (devnum >> NBITSMINOR); in __major()
105 if (maj > MAXMAJ) { in __major()
117 return (maj); in __major()
/illumos-gate/usr/src/uts/common/io/
H A Dclone.c168 major_t maj; in clnopen() local
184 maj = etoimajor(emaj); /* get internal major of cloned driver */ in clnopen()
186 if (maj >= devcnt) in clnopen()
207 if (ddi_hold_installed_driver(maj) == NULL) in clnopen()
210 if ((str = STREAMSTAB(maj)) == NULL) { in clnopen()
211 ddi_rele_driver(maj); in clnopen()
230 ddi_rele_driver(maj); in clnopen()
242 dp = &devimpl[maj]; in clnopen()
322 ddi_rele_driver(maj); in clnopen()
H A Dl_strplumb.c59 kstr_open(major_t maj, minor_t min, vnode_t **vpp, int *fd) in kstr_open() argument
64 vp = makespecvp(makedevice(maj, min), VCHR); in kstr_open()
219 kstr_autopush(int op, major_t *maj, minor_t *min, minor_t *lastmin, in kstr_autopush() argument
251 push.sap_major = *maj; in kstr_autopush()
264 *maj = push.sap_major; in kstr_autopush()
270 *maj = push.sap_major; in kstr_autopush()
276 *maj = push.sap_major; in kstr_autopush()
298 push.sap_major = *maj; in kstr_autopush()
326 push.sap_major = *maj; in kstr_autopush()
H A Dvcons_conf.c75 major_t maj = (major_t)-1; in _NOTE() local
80 maj = ddi_driver_major(wc_dip); in _NOTE()
84 return (maj); in _NOTE()
/illumos-gate/usr/src/tools/protolist/
H A Dprotolist.c51 char maj[10], min[10]; in visit_dir() local
68 maj[0] = min[0] = symsrc[0] = '-'; in visit_dir()
69 maj[1] = min[1] = symsrc[1] = '\0'; in visit_dir()
106 (void) sprintf(maj, "%ld", major(st->st_rdev)); in visit_dir()
114 (void) sprintf(maj, "%ld", major(st->st_rdev)); in visit_dir()
146 inum, st->st_nlink, maj, min); in visit_dir()
/illumos-gate/usr/src/uts/common/sys/
H A Dconf.h83 #define STREAMSTAB(maj) (devopsp[(maj)] == NULL ? NULL : \ argument
84 (devopsp[(maj)]->devo_cb_ops == NULL ? \
86 devopsp[(maj)]->devo_cb_ops->cb_str))
87 #define CBFLAG(maj) (devopsp[(maj)]->devo_cb_ops->cb_flag) argument
H A Dautoconf.h245 #define NETWORK_DRV(maj) (devnamesp[(maj)].dn_flags & DN_NETWORK_DRIVER) argument
246 #define GLDV3_DRV(maj) (devnamesp[(maj)].dn_flags & DN_GLDV3_DRIVER) argument
247 #define NETWORK_PHYSDRV(maj) \ argument
248 (devnamesp[(maj)].dn_flags & DN_NETWORK_PHYSDRIVER)
H A Dmkdev.h97 #define makedev(maj, min) (__makedev(NEWDEV, maj, min)) argument
/illumos-gate/usr/src/cmd/svc/rootisramdisk/
H A Drootisramdisk.c43 major_t maj; in root_is_ramdisk() local
50 maj = major(st.st_dev); in root_is_ramdisk()
52 fprintf(stderr, "major = %lu\n", (long unsigned)maj); in root_is_ramdisk()
55 if (modctl(MODGETNAME, driver, sizeof (driver), &maj) != 0) { in root_is_ramdisk()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dval_cred.c81 OM_uint32 maj; local
89 maj = krb5_gss_validate_cred_1(minor_status, cred_handle, context);
90 if (maj == 0) {
97 return maj;
/illumos-gate/usr/src/uts/common/os/
H A Ddriver.c625 major_t maj; in cdev_size() local
628 if ((maj = getmajor(dev)) >= devcnt) in cdev_size()
631 dnp = &(devnamesp[maj]); in cdev_size()
633 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_size()
634 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_size()
649 major_t maj; in cdev_Size() local
652 if ((maj = getmajor(dev)) >= devcnt) in cdev_Size()
655 dnp = &(devnamesp[maj]); in cdev_Size()
657 if (devopsp[maj] && devopsp[maj]->devo_cb_ops && in cdev_Size()
658 !devopsp[maj]->devo_cb_ops->cb_str) { in cdev_Size()
H A Ddevpolicy.c280 devpolicyent_bymajor(major_t maj) in devpolicyent_bymajor() argument
293 if (devpolicy[mid].t_major == maj) in devpolicyent_bymajor()
295 else if (maj < devpolicy[mid].t_major) in devpolicyent_bymajor()
312 major_t maj = getmajor(dev); in devpolicy_find() local
316 if (maj == clone_major) in devpolicy_find()
317 maj = getminor(dev); in devpolicy_find()
321 i = devpolicyent_bymajor(maj); in devpolicy_find()
327 res = NETWORK_DRV(maj) ? netpolicy : dfltpolicy; in devpolicy_find()
/illumos-gate/usr/src/cmd/cpio/
H A Dcpiostat.c44 major_t maj, min; in convert() local
46 maj = major(dev); /* get major number */ in convert()
50 return ((maj << 8) | min); in convert()
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ddi.c81 makedevice(major_t maj, minor_t minor) in makedevice() argument
84 return (((dev_t)maj << NBITSMINOR64) | (minor & MAXMIN64)); in makedevice()
86 return (((dev_t)maj << NBITSMINOR) | (minor & MAXMIN)); in makedevice()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvio_util.h159 #define VIO_VER_IS_NEGOTIATED(ver, maj, min) \ argument
160 ((ver.major == (maj)) && (ver.minor == (min)))
162 boolean_t vio_ver_is_supported(vio_ver_t ver, uint16_t maj, uint16_t min);
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c132 major_t maj; in partinfo() local
141 maj = major(statbuf.st_rdev); in partinfo()
147 device, maj, min, in partinfo()
155 device, maj, min, in partinfo()
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_vtops.c155 major_t maj; in devvt_create_rvp() local
158 if ((maj = vt_wc_attached()) == (major_t)-1) in devvt_create_rvp()
177 vap->va_rdev = makedevice(maj, min); in devvt_create_rvp()
236 major_t maj; in devvt_create_snode() local
241 if ((maj = vt_wc_attached()) == (major_t)-1) in devvt_create_snode()
260 vap->va_rdev = makedevice(maj, min); in devvt_create_snode()
H A Dsdev_ptsops.c166 major_t maj; in devpts_create_rvp() local
180 maj = ptms_subsidiary_attached(); in devpts_create_rvp()
181 if (maj == (major_t)-1) { in devpts_create_rvp()
202 vap->va_rdev = makedevice(maj, min); in devpts_create_rvp()
/illumos-gate/usr/src/cmd/filesync/
H A Drename.c144 long maj, min; in find_oldname() local
151 maj = new->f_info[side].f_d_maj; in find_oldname()
173 if (((side == OPT_SRC) ? fp->f_s_maj : fp->f_d_maj) != maj) in find_oldname()
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c617 int maj; in get_cached_n_to_m_file() local
656 maj = atoi(entry); in get_cached_n_to_m_file()
657 if (maj > size) in get_cached_n_to_m_file()
658 size = maj; in get_cached_n_to_m_file()
700 maj = atoi(entry); in get_cached_n_to_m_file()
713 for (maj = 0; maj <= ptr->size; maj++) in get_cached_n_to_m_file()
714 free(ptr->cached_file[maj]); in get_cached_n_to_m_file()
758 int maj; in get_name_to_major_entry() local
775 for (maj = 0; maj < size; maj++) { in get_name_to_major_entry()
778 *major_no = maj; in get_name_to_major_entry()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_dyndns.c434 display_stat(OM_uint32 maj, OM_uint32 min) in display_stat() argument
1023 OM_uint32 min, maj, time_rec; in dyndns_establish_sec_ctx() local
1039 if ((maj = gss_import_name(&min, &service_buf, in dyndns_establish_sec_ctx()
1041 display_stat(maj, min); in dyndns_establish_sec_ctx()
1056 if (maj != GSS_S_COMPLETE && maj != GSS_S_CONTINUE_NEEDED) { in dyndns_establish_sec_ctx()
1062 display_stat(maj, min); in dyndns_establish_sec_ctx()
1067 if ((maj == GSS_S_COMPLETE) && in dyndns_establish_sec_ctx()
1076 if ((maj == GSS_S_COMPLETE) && in dyndns_establish_sec_ctx()
1131 } while (maj != GSS_S_COMPLETE); in dyndns_establish_sec_ctx()
1554 OM_uint32 min, maj; in dyndns_sec_add_remove_entry() local
[all …]
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c319 major_t maj; in spec_size() local
334 maj = getmajor(dev); in spec_size()
335 if (maj >= devcnt) { in spec_size()
342 if (STREAMSTAB(maj)) { in spec_size()
454 major_t maj = getmajor(dev); in spec_clone() local
470 if ((maj != newmaj) && !sysclone) { in spec_clone()
473 maj, newmaj); in spec_clone()
565 major_t maj; in spec_open() local
638 maj = getmajor(dev); in spec_open()
639 if ((maj >= devcnt) || in spec_open()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_helper_stream.c107 major_t maj; in ip_helper_stream_setup() local
148 maj = getemajor(*devp); in ip_helper_stream_setup()
149 *devp = makedevice(maj, (ulong_t)(ip_minfop->ip_minfo_dev)); in ip_helper_stream_setup()

123