Home
last modified time | relevance | path

Searched full:child (Results 1 – 25 of 2940) sorted by relevance

12345678910>>...118

/freebsd/contrib/bc/tests/
H A Dhistory.py76 def expect(child, data): argument
77 child.expect(data)
80 # Eats all of the child's data.
81 # @param child The child whose data should be eaten.
82 def eat(child): argument
83 while child.buffer is not None and len(child.buffer) > 0:
84 expect(child, ".+")
87 # Send data to a child. This makes sure the buffers are empty first.
88 # @param child The child to send data to.
90 def send(child, data): argument
[all …]
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_ptrace_wait.c59 ATF_REQUIRE(msg_write_child(info " to child " # fds, &fds, &msg, sizeof(msg)) == 0)
75 "Verify SIGSTOP followed by _exit(2) in a child"); in ATF_TC_HEAD()
82 pid_t child, wpid; in ATF_TC_BODY() local
88 ATF_REQUIRE((child = fork()) != -1); in ATF_TC_BODY()
89 if (child == 0) { in ATF_TC_BODY()
90 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY()
93 printf("Before raising %s from child\n", strsignal(sigval)); in ATF_TC_BODY()
96 printf("Before exiting of the child process\n"); in ATF_TC_BODY()
99 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY()
101 printf("Before calling %s() for the child\n", TWAIT_FNAME); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_cmd_if.m53 bypass_mng_get_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
58 return (DPAA2_CMD_MNG_GET_VERSION(device_get_parent(dev), child,
63 bypass_mng_get_soc_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
69 device_get_parent(dev), child, cmd, pvr, svr));
73 bypass_mng_get_container_id(device_t dev, device_t child, struct dpaa2_cmd *cmd,
79 device_get_parent(dev), child, cmd, cont_id));
83 bypass_rc_open(device_t dev, device_t child, struct dpaa2_cmd *cmd, uint32_t cont_id,
89 device_get_parent(dev), child, cmd, cont_id, token));
93 bypass_rc_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
98 device_get_parent(dev), child, cmd));
[all …]
H A Ddpaa2_rc.c170 /* TODO: Child DPRCs aren't supported yet. */ in dpaa2_rc_attach()
191 dpaa2_rc_get_resource_list(device_t rcdev, device_t child) in dpaa2_rc_get_resource_list() argument
193 struct dpaa2_devinfo *dinfo = device_get_ivars(child); in dpaa2_rc_get_resource_list()
199 dpaa2_rc_delete_resource(device_t rcdev, device_t child, int type, int rid) in dpaa2_rc_delete_resource() argument
205 if (device_get_parent(child) != rcdev) in dpaa2_rc_delete_resource()
208 dinfo = device_get_ivars(child); in dpaa2_rc_delete_resource()
218 "child: type=%d, rid=%d, start=%jx\n", __func__, in dpaa2_rc_delete_resource()
222 resource_list_unreserve(rl, rcdev, child, type, rid); in dpaa2_rc_delete_resource()
228 dpaa2_rc_alloc_multi_resource(device_t rcdev, device_t child, int type, int rid, in dpaa2_rc_alloc_multi_resource() argument
234 dinfo = device_get_ivars(child); in dpaa2_rc_alloc_multi_resource()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DX86DisassemblerTables.cpp83 /// @param child - The class that may be the subset
85 /// @return - True if child is a subset of parent, false otherwise.
86 static inline bool inheritsFrom(InstructionContext child, in inheritsFrom() argument
90 if (child == parent) in inheritsFrom()
95 return (inheritsFrom(child, IC_64BIT, AdSize64) || in inheritsFrom()
96 (noPrefix && inheritsFrom(child, IC_OPSIZE, noPrefix)) || in inheritsFrom()
97 inheritsFrom(child, IC_ADSIZE) || in inheritsFrom()
98 (noPrefix && inheritsFrom(child, IC_XD, noPrefix)) || in inheritsFrom()
99 (noPrefix && inheritsFrom(child, IC_XS, noPrefix))); in inheritsFrom()
101 return (inheritsFrom(child, IC_64BIT_REXW) || in inheritsFrom()
[all …]
/freebsd/sys/dev/bhnd/
H A Dbhnd_bus_if.m65 bhnd_bus_null_get_chipid(device_t dev, device_t child)
71 bhnd_bus_null_read_ioctl(device_t dev, device_t child, uint16_t *ioctl)
78 bhnd_bus_null_write_ioctl(device_t dev, device_t child, uint16_t value,
86 bhnd_bus_null_read_iost(device_t dev, device_t child, uint16_t *iost)
92 bhnd_bus_null_is_hw_suspended(device_t dev, device_t child)
98 bhnd_bus_null_reset_hw(device_t dev, device_t child, uint16_t ioctl,
106 bhnd_bus_null_suspend_hw(device_t dev, device_t child)
112 bhnd_bus_null_get_attach_type(device_t dev, device_t child)
118 bhnd_bus_null_read_board_info(device_t dev, device_t child,
125 bhnd_bus_null_child_added(device_t dev, device_t child)
[all …]
H A Dbhnd.c142 device_t child = devs[i]; in bhnd_delete_children() local
145 if ((error = device_delete_child(sc->dev, child))) in bhnd_delete_children()
203 device_t child = devs[i]; in bhnd_generic_shutdown() local
206 if ((error = device_shutdown(child))) in bhnd_generic_shutdown()
240 device_t child = devs[i]; in bhnd_generic_resume() local
243 if ((error = BUS_RESUME_CHILD(device_get_parent(child), child))) in bhnd_generic_resume()
279 device_t child = devs[i]; in bhnd_generic_suspend() local
280 error = BUS_SUSPEND_CHILD(device_get_parent(child), child); in bhnd_generic_suspend()
306 bhnd_generic_get_probe_order(device_t dev, device_t child) in bhnd_generic_get_probe_order() argument
308 switch (bhnd_get_class(child)) { in bhnd_generic_get_probe_order()
[all …]
/freebsd/contrib/netbsd-tests/kernel/arch/amd64/
H A Dt_ptrace_wait.c70 pid_t child, wpid; in ATF_TC_BODY() local
77 ATF_REQUIRE((child = fork()) != -1); in ATF_TC_BODY()
78 if (child == 0) { in ATF_TC_BODY()
79 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY()
82 printf("Before raising %s from child\n", strsignal(sigval)); in ATF_TC_BODY()
85 printf("Before exiting of the child process\n"); in ATF_TC_BODY()
88 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY()
90 printf("Before calling %s() for the child\n", TWAIT_FNAME); in ATF_TC_BODY()
91 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child); in ATF_TC_BODY()
95 printf("Call GETREGS for the child process\n"); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/bhnd/siba/
H A Dsiba.c124 siba_read_ivar(device_t dev, device_t child, int index, uintptr_t *result) in siba_read_ivar() argument
131 dinfo = device_get_ivars(child); in siba_read_ivar()
188 siba_write_ivar(device_t dev, device_t child, int index, uintptr_t value) in siba_write_ivar() argument
194 dinfo = device_get_ivars(child); in siba_write_ivar()
232 siba_get_resource_list(device_t dev, device_t child) in siba_get_resource_list() argument
234 struct siba_devinfo *dinfo = device_get_ivars(child); in siba_get_resource_list()
240 siba_alloc_pmu(device_t dev, device_t child) in siba_alloc_pmu() argument
250 if (device_get_parent(child) != dev) in siba_alloc_pmu()
254 dinfo = device_get_ivars(child); in siba_alloc_pmu()
258 chipc = bhnd_retain_provider(child, BHND_SERVICE_CHIPC); in siba_alloc_pmu()
[all …]
/freebsd/sys/dev/pci/
H A Dpci_if.m35 null_msi_count(device_t dev, device_t child)
41 null_msix_bar(device_t dev, device_t child)
73 device_t child;
80 device_t child;
88 device_t child;
93 device_t child;
99 device_t child;
105 device_t child;
112 device_t child;
117 device_t child;
[all …]
H A Dhostb_pci.c40 * provides an AGP capability then we create a child agp device for the
76 * an AGP child. in pci_hostb_attach()
87 pci_hostb_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) in pci_hostb_read_ivar() argument
94 pci_hostb_write_ivar(device_t dev, device_t child, int which, uintptr_t value) in pci_hostb_write_ivar() argument
101 pci_hostb_alloc_resource(device_t dev, device_t child, int type, int rid, in pci_hostb_alloc_resource() argument
109 pci_hostb_release_resource(device_t dev, device_t child, struct resource *r) in pci_hostb_release_resource() argument
118 pci_hostb_read_config(device_t dev, device_t child, int reg, int width) in pci_hostb_read_config() argument
125 pci_hostb_write_config(device_t dev, device_t child, int reg, in pci_hostb_write_config() argument
133 pci_hostb_enable_busmaster(device_t dev, device_t child) in pci_hostb_enable_busmaster() argument
136 device_printf(dev, "child %s requested pci_enable_busmaster\n", in pci_hostb_enable_busmaster()
[all …]
/freebsd/sys/dev/bhnd/bcma/
H A Dbcma.c100 device_t child; in bcma_add_child() local
102 child = device_add_child_ordered(dev, order, name, unit); in bcma_add_child()
103 if (child == NULL) in bcma_add_child()
107 device_delete_child(dev, child); in bcma_add_child()
111 device_set_ivars(child, dinfo); in bcma_add_child()
113 return (child); in bcma_add_child()
117 bcma_child_deleted(device_t dev, device_t child) in bcma_child_deleted() argument
122 bhnd_generic_child_deleted(dev, child); in bcma_child_deleted()
125 if ((dinfo = device_get_ivars(child)) != NULL) in bcma_child_deleted()
126 bcma_free_dinfo(dev, child, dinfo); in bcma_child_deleted()
[all …]
/freebsd/contrib/kyua/utils/process/
H A Dchild_test.cpp29 #include "utils/process/child.ipp"
152 /// Body for a child process that throws an exception.
160 /// Body for a child process that creates a pidfile.
171 /// A child process that returns.
174 /// child before the code returns to the fork() call point.
181 /// A child process that raises an exception.
184 /// child before the code returns to the fork() call point.
266 /// Helper for child tests to validate inheritance of stdout/stderr.
270 /// call fork with the given parameters and then make our child redirect one of
295 std::unique_ptr< process::child > child = process::child::fork_files( in do_inherit_test() local
[all …]
/freebsd/tests/sys/kern/
H A Dprocdesc.c114 // In child in ATF_TC_BODY()
118 * Reap the child, but don't close the pd, creating a dangling pid. in ATF_TC_BODY()
220 * Basic: open a process descriptor for a child, verify pdgetpid() returns the
226 pid_t child, queried; in ATF_TC_BODY() local
229 child = fork(); in ATF_TC_BODY()
230 ATF_REQUIRE_MSG(child >= 0, "fork: %s", strerror(errno)); in ATF_TC_BODY()
231 if (child == 0) { in ATF_TC_BODY()
237 fd = pdopenpid(child, 0); in ATF_TC_BODY()
242 ATF_REQUIRE_EQ(child, queried); in ATF_TC_BODY()
246 ATF_REQUIRE_EQ(child, waitpid(child, NULL, 0)); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_pci.c78 static void acpi_pci_child_deleted(device_t dev, device_t child);
80 device_t child, struct sbuf *sb);
82 device_t child, const char *locator, struct sbuf *sb);
85 static int acpi_pci_read_ivar(device_t dev, device_t child, int which,
87 static int acpi_pci_write_ivar(device_t dev, device_t child, int which,
91 static int acpi_pci_set_powerstate_method(device_t dev, device_t child,
94 static bus_dma_tag_t acpi_pci_get_dma_tag(device_t bus, device_t child);
95 static int acpi_pci_get_cpus(device_t dev, device_t child,
97 static int acpi_pci_get_domain(device_t dev, device_t child, int *domain);
98 static device_t acpi_pci_get_locality_device(device_t child);
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_change-key/
H A Dzfs_change-key_child.ksh23 # 'zfs change-key' should promote an encrypted child to an encryption root.
27 # 2. Create an encrypted child dataset
28 # 3. Create an unencrypted child dataset
33 # 8. Recreate the child dataset
36 # 11. Verify the unencrytped child is still accessible normally
49 log_assert "'zfs change-key' should promote an encrypted child to an" \
54 log_must zfs create $TESTPOOL/$TESTFS1/child
58 "$TESTPOOL/$TESTFS1/child"
61 "$TESTPOOL/$TESTFS1/child"
64 "$TESTPOOL/$TESTFS1/child"
[all …]
/freebsd/sys/dev/rge/
H A Dif_rge_sysctl.c67 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); in rge_sysctl_drv_stats_attach() local
70 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "drv_stats", in rge_sysctl_drv_stats_attach()
72 child = SYSCTL_CHILDREN(tree); in rge_sysctl_drv_stats_attach()
75 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_call_cnt", CTLFLAG_RD, in rge_sysctl_drv_stats_attach()
77 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_stopped_cnt", in rge_sysctl_drv_stats_attach()
80 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_full_cnt", in rge_sysctl_drv_stats_attach()
83 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "transmit_queued_cnt", in rge_sysctl_drv_stats_attach()
87 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "intr_cnt", in rge_sysctl_drv_stats_attach()
90 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "intr_system_errcnt", in rge_sysctl_drv_stats_attach()
93 SYSCTL_ADD_QUAD(ctx, child, OID_AUTO, "rxeof_cnt", in rge_sysctl_drv_stats_attach()
[all …]
/freebsd/sys/isa/
H A Disa_common.c114 * Find a working set of memory regions for a child using the ranges
119 isa_find_memory(device_t child, struct isa_config *config, in isa_find_memory() argument
129 bus_delete_resource(child, SYS_RES_MEMORY, i); in isa_find_memory()
154 bus_set_resource(child, SYS_RES_MEMORY, i, in isa_find_memory()
156 res[i] = bus_alloc_resource_any(child, in isa_find_memory()
180 bus_release_resource(child, SYS_RES_MEMORY, in isa_find_memory()
188 * Find a working set of port regions for a child using the ranges
193 isa_find_port(device_t child, struct isa_config *config, in isa_find_port() argument
203 bus_delete_resource(child, SYS_RES_IOPORT, i); in isa_find_port()
228 bus_set_resource(child, SYS_RES_IOPORT, i, in isa_find_port()
[all …]
/freebsd/lib/libsys/
H A Dfork.246 The new process (child process) is an exact copy of the
50 The child process has a unique process ID.
52 The child process has a different parent
55 The child process has its own copy of the parent's descriptors,
61 the child and the parent, so that an
63 on a descriptor in the child process can affect a subsequent
80 will not be present in the child process, but remain open in the parent.
82 The child process' resource utilizations
91 is cleared for the child.
96 and after the child is created, in parent and child.
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_sysctl.c787 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); in ath_sysctl_alq_attach() local
789 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "alq", in ath_sysctl_alq_attach()
792 child = SYSCTL_CHILDREN(tree); in ath_sysctl_alq_attach()
794 SYSCTL_ADD_STRING(ctx, child, OID_AUTO, "filename", in ath_sysctl_alq_attach()
1028 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); in ath_sysctl_stats_attach_rxphyerr() local
1034 child = SYSCTL_CHILDREN(tree); in ath_sysctl_stats_attach_rxphyerr()
1037 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, &sc->sc_stats.ast_rx_phy[i], 0, ""); in ath_sysctl_stats_attach_rxphyerr()
1047 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); in ath_sysctl_stats_attach_intr() local
1053 child = SYSCTL_CHILDREN(tree); in ath_sysctl_stats_attach_intr()
1056 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, in ath_sysctl_stats_attach_intr()
[all …]
/freebsd/sys/arm64/arm64/
H A Dnexus.c201 nexus_print_child(device_t bus, device_t child) in nexus_print_child() argument
205 retval += bus_print_child_header(bus, child); in nexus_print_child()
214 device_t child; in nexus_add_child() local
222 child = device_add_child_ordered(bus, order, name, unit); in nexus_add_child()
225 device_set_ivars(child, ndev); in nexus_add_child()
227 return (child); in nexus_add_child()
245 * Allocate a resource on behalf of child. NB: child is usually going to be a
246 * child of one of our descendants, not a direct child of nexus0.
249 nexus_alloc_resource(device_t bus, device_t child, int type, int rid, in nexus_alloc_resource() argument
252 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zoned_uid/
H A Dzoned_uid_022_neg.ksh24 # Delegated users CAN set tighter sub-limits on child datasets.
32 # 6. From namespace: create child dataset
33 # 7. From namespace: set filesystem_limit=3 on child (SUCCEED)
34 # 8. From namespace: set snapshot_limit=2 on child (SUCCEED)
35 # 9. Verify child has the sub-limits set
101 # Step 6: Create child from namespace
103 create "$TESTPOOL/$TESTFS/deleg_root/child" 2>&1)
105 log_note "Create child output: $result"
106 log_fail "Failed to create child from namespace"
109 # Step 7: Set filesystem_limit on child (should SUCCEED - tighter sub-limit)
[all …]
/freebsd/sys/dev/ofw/
H A Dofw_graph.c49 phandle_t ports, child; in ofw_graph_get_port_by_idx() local
55 child = ofw_bus_find_child(node, portnode); in ofw_graph_get_port_by_idx()
56 if (child != 0) in ofw_graph_get_port_by_idx()
57 return (child); in ofw_graph_get_port_by_idx()
62 child = ofw_bus_find_child(node, portnode); in ofw_graph_get_port_by_idx()
63 if (child != 0) in ofw_graph_get_port_by_idx()
64 return (child); in ofw_graph_get_port_by_idx()
72 for (child = OF_child(ports); child != 0; child = OF_peer(child)) { in ofw_graph_get_port_by_idx()
73 if (OF_getencprop(child, "reg", &reg, sizeof(uint32_t)) <= 0 || in ofw_graph_get_port_by_idx()
77 return (child); in ofw_graph_get_port_by_idx()
[all …]
/freebsd/sys/dev/spibus/
H A Dspibus.c65 spibus_print_child(device_t dev, device_t child) in spibus_print_child() argument
67 struct spibus_ivar *devi = SPIBUS_IVAR(child); in spibus_print_child()
70 retval += bus_print_child_header(dev, child); in spibus_print_child()
75 retval += bus_print_child_footer(dev, child); in spibus_print_child()
81 spibus_probe_nomatch(device_t bus, device_t child) in spibus_probe_nomatch() argument
83 struct spibus_ivar *devi = SPIBUS_IVAR(child); in spibus_probe_nomatch()
91 spibus_child_location(device_t bus, device_t child, struct sbuf *sb) in spibus_child_location() argument
93 struct spibus_ivar *devi = SPIBUS_IVAR(child); in spibus_child_location()
102 spibus_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) in spibus_read_ivar() argument
104 struct spibus_ivar *devi = SPIBUS_IVAR(child); in spibus_read_ivar()
[all …]
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_if.m57 bhndb_null_get_chipid(device_t dev, device_t child)
63 bhndb_null_populate_board_info(device_t dev, device_t child,
70 bhndb_null_is_core_disabled(device_t dev, device_t child,
77 bhndb_null_get_hostb_core(device_t dev, device_t child,
84 bhndb_null_suspend_resource(device_t dev, device_t child, int type,
91 bhndb_null_resume_resource(device_t dev, device_t child, int type,
98 bhndb_null_route_interrupts(device_t dev, device_t child)
119 * Return the chip identification information for @p child.
121 * @param dev The parent device of @p child.
122 * @param child The bhndb-attached device.
[all …]

12345678910>>...118