Home
last modified time | relevance | path

Searched refs:primary (Results 1 – 21 of 21) sorted by relevance

/xnu-11215/tests/
H A Dtty_ioctl.c43 int primary; in tty_ioctl_tioccons() local
50 T_ASSERT_POSIX_SUCCESS(primary = posix_openpt(O_RDWR | O_NOCTTY), "open primary"); in tty_ioctl_tioccons()
53 T_ASSERT_POSIX_SUCCESS(grantpt(primary), "grantpt"); in tty_ioctl_tioccons()
54 T_ASSERT_POSIX_SUCCESS(unlockpt(primary), "unlockpt"); in tty_ioctl_tioccons()
57 T_ASSERT_NOTNULL((name = ptsname(primary)), "ptsname"); in tty_ioctl_tioccons()
64 T_ASSERT_POSIX_SUCCESS(ioctl(primary, TIOCCONS, (char *)&on), "ioctl TIOCCONS on"); in tty_ioctl_tioccons()
66 T_ASSERT_POSIX_ERROR(ioctl(primary, TIOCCONS, (char *)&on), -EPERM, "ioctl TIOCCONS on"); in tty_ioctl_tioccons()
68 T_ASSERT_POSIX_SUCCESS(ioctl(primary, TIOCCONS, (char *)&off), "ioctl TIOCCONS off"); in tty_ioctl_tioccons()
71 T_ASSERT_POSIX_SUCCESS(close(primary), "close primary"); in tty_ioctl_tioccons()
H A Dpty_121077498.c22 int primary, replica, flags; variable
36 T_ASSERT_POSIX_SUCCESS(primary = posix_openpt(O_RDWR | O_NOCTTY), NULL);
37 T_ASSERT_POSIX_SUCCESS(grantpt(primary), NULL);
38 T_ASSERT_POSIX_SUCCESS(unlockpt(primary), NULL);
39 T_ASSERT_POSIX_SUCCESS(ptsname_r(primary, rname, sizeof(rname)), NULL);
42 T_ASSERT_POSIX_SUCCESS(flags = fcntl(primary, F_GETFL, 0), NULL);
44 T_ASSERT_POSIX_SUCCESS(flags = fcntl(primary, F_SETFL, flags), NULL);
50 T_EXPECT_POSIX_FAILURE(read(primary, &c, 1), EAGAIN, "read with no data returns EAGAIN");
69 T_EXPECT_POSIX_SUCCESS(close(primary), NULL);
/xnu-11215/osfmk/kern/
H A Dsched_dualq.c262 processor_t primary = processor->processor_primary; in sched_dualq_choose_thread() local
263 if (primary->state == PROCESSOR_RUNNING) { in sched_dualq_choose_thread()
264 if (processor_active_thread_no_smt(primary)) { in sched_dualq_choose_thread()
564 processor_t primary = processor->processor_primary; in sched_dualq_thread_avoid_processor() local
565 …if ((primary->current_pri >= BASEPRI_RTQUEUES) && ((thread->sched_pri < BASEPRI_RTQUEUES) || !sche… in sched_dualq_thread_avoid_processor()
574 if (primary->state == PROCESSOR_RUNNING) { in sched_dualq_thread_avoid_processor()
575 if (processor_active_thread_no_smt(primary)) { in sched_dualq_thread_avoid_processor()
H A Dprocessor.c390 processor_t primary) in processor_set_primary() argument
392 assert(processor->processor_primary == primary || processor->processor_primary == processor); in processor_set_primary()
394 processor->processor_primary = primary; in processor_set_primary()
396 assert(primary->processor_secondary == NULL || primary->processor_secondary == processor); in processor_set_primary()
397 if (primary != processor) { in processor_set_primary()
403 primary->processor_secondary = processor; in processor_set_primary()
405 primary->is_SMT = TRUE; in processor_set_primary()
H A Dprocessor.h537 processor_t primary);
H A Dsched_prim.c5550 processor_t primary = processor->processor_primary; in choose_processor() local
5551 if (primary != processor) { in choose_processor()
5553 if (!((primary->state == PROCESSOR_RUNNING) && processor_active_thread_no_smt(primary))) { in choose_processor()
/xnu-11215/osfmk/i386/
H A Dhpet.c133 if (lcpu->primary) { in hpet_request()
173 if (lcpu->primary) { in hpet_request()
342 if (!lcpu->primary) { in ml_hpet_cfg()
H A Dcpu_topology.h138 boolean_t primary; /* logical cpu is primary CPU in package */ member
H A Dcpu_threads.c495 lcpu->primary = (lnum % topoParms.nLThreadsPerPackage) == 0; in x86_set_logical_topology()
1244 if (cpu->primary) { in debug_topology_print()
1247 if (!cpu->master && !cpu->primary) { in debug_topology_print()
/xnu-11215/makedefs/
H A DMakeInc.kernel47 # There are 5 primary build outputs:
335 # Install rules. Each build config is classified as "primary" (the first
336 # config for an architecture) or "non-primary". Primary build configs
339 # $(DSTROOT)/$(KERNEL_FILE_NAME), and consequently each primary build config
340 # has its install target run serially with respect to other primary
341 # build configs. Non-primary build configs will never compete for
343 # with other non-primary configs (and even primary configs)
H A DMakeInc.top24 # "primary" build configs are done in serial.
/xnu-11215/bsd/kern/
H A Dtty_dev.h56 int primary; // primary major device number member
H A Dtty_pty.c167 _pty_driver.primary = PTC_MAJOR; in pty_init()
H A Dtty_dev.c214 if ((driver->primary == major || driver->replica == major)) { in pty_get_driver()
987 if (major(dev) == driver->primary &&
1094 if (major(dev) == driver->primary) {
1124 if (major(dev) == driver->primary) {
H A Dtty_ptmx.c230 _ptmx_driver.primary = ptmx_major; in ptmx_init()
/xnu-11215/iokit/DriverKit/
H A DIOInterruptDispatchSource.iig60 * the primary interrupt fired. For IOPCIDevices, only MSI interrupt sources are supported.
137 primary interrupt handler.
/xnu-11215/osfmk/tests/
H A DREADME.md3 … and bsd/tests include set of tests that run in kernel at boot-time. The primary objective for the…
/xnu-11215/libsyscall/mach/
H A Derr_server.sub114 "(server/auth) not primary",
/xnu-11215/doc/observability/
H A Drecount.md100 A `struct recount_track` is the primary data structure found in threads, tasks, and processors.
/xnu-11215/bsd/net/
H A Dbpf.c731 struct bpf_if *tmp, *primary = NULL; in bpf_attachd() local
735 primary = tmp; in bpf_attachd()
739 bp->bif_ifp->if_bpf = primary; in bpf_attachd()
/xnu-11215/tools/lldbmacros/
H A Dprocess.py874 …out_string += format_string.format(tty_dev, tty_dev.primary, tty_dev.replica, open_fn, free_fn, na…