/fuchsia/zircon/system/ulib/zx/include/lib/zx/ |
H A D | job.h | 14 class job : public task<job> { class in namespace:zx 18 constexpr job() = default; 20 explicit job(zx_handle_t value) : task(value) {} function in class:zx::job 22 explicit job(handle&& h) : task(h.release()) {} function in class:zx::job 24 job(job&& other) : task(other.release()) {} function in class:zx::job 26 job& operator=(job&& other) { 31 static zx_status_t create(const zx::job [all...] |
H A D | process.h | 14 class job; 38 static zx_status_t create(const job& job, const char* name, uint32_t name_len,
|
/fuchsia/zircon/system/ulib/zx/ |
H A D | job.cpp | 5 #include <lib/zx/job.h> 12 zx_status_t job::create(const job& parent, uint32_t flags, job* result) { 14 job h; 21 zx_status_t job::get_child(uint64_t koid, zx_rights_t rights,
|
H A D | process.cpp | 9 #include <lib/zx/job.h> 15 zx_status_t process::create(const job& job, const char* name, uint32_t name_len, argument 17 // Assume |proc|, |vmar| and |job| must refer to different containers, due 20 job.get(), name, name_len, flags, proc->reset_and_get_address(),
|
/fuchsia/zircon/third_party/uapp/dash/src/ |
H A D | jobs.h | 52 * A job structure contains information about a job. A job is either a 64 struct job { struct 65 zx_handle_t zx_job_hndl; /* zircon job handle */ 69 int stopstatus; /* status of a stopped job */ 78 sigint: 1, /* job was killed by SIGINT */ 79 jobctl: 1, /* job running under job control */ 84 struct job *prev_jo [all...] |
H A D | process.h | 13 int index, zx_handle_t* process, zx_handle_t job, 17 zx_handle_t* process, zx_handle_t job, 21 int process_await_termination(zx_handle_t process, zx_handle_t job, bool blocking);
|
H A D | eval.h | 47 struct job *jp; /* job structure for command */
|
H A D | jobs.c | 85 static struct job *jobtab; 98 /* current job */ 99 static struct job *curjob; 103 STATIC void set_curjob(struct job *, unsigned); 104 STATIC int jobno(const struct job *); 106 STATIC struct job *getjob(const char *, int); 107 STATIC struct job *growjobtab(void); 108 STATIC void forkchild(struct job *, union node *, int); 109 STATIC int dowait(int, struct job *); 118 STATIC void showpipe(struct job *, struc 595 struct job *job; local 1014 dowait(int block, struct job *job) argument 1498 getstatus(struct job *job) argument [all...] |
H A D | process.c | 27 zx_handle_t job, char err_msg[FDIO_SPAWN_ERR_MSG_MAX_LENGTH]) { 36 return fdio_spawn_etc(job, flags, filename, argv, envp, 0, NULL, process, err_msg); 54 zx_handle_t* process, zx_handle_t job, 106 return fdio_spawn_etc(job, flags, orig_arg0, argv, envp, 111 zx_handle_t* process, zx_handle_t job, 119 status = launch(argv[0], argv, envp, process, job, err_msg); 125 status = launch(filename, argv, envp, process, job, err_msg); 170 int process_await_termination(zx_handle_t process, zx_handle_t job, bool blocking) { argument 210 // process belongs to job, so killing the job kill 25 launch(const char* filename, const char* const* argv, const char* const* envp, zx_handle_t* process, zx_handle_t job, char err_msg[FDIO_SPAWN_ERR_MSG_MAX_LENGTH]) argument 53 process_subshell(union node* n, const char* const* envp, zx_handle_t* process, zx_handle_t job, int *fds, char err_msg[FDIO_SPAWN_ERR_MSG_MAX_LENGTH]) argument 110 process_launch(const char* const* argv, const char* path, int index, zx_handle_t* process, zx_handle_t job, zx_status_t* status_out, char err_msg[FDIO_SPAWN_ERR_MSG_MAX_LENGTH]) argument [all...] |
/fuchsia/zircon/system/core/crashsvc/ |
H A D | crashsvc.cpp | 10 #include <lib/zx/job.h> 22 static bool GetChildKoids(const zx::job& job, zx_object_info_topic_t child_kind, argument 31 if (job.get_info(child_kind, koids->get(), count * sizeof(zx_koid_t), &actual, 54 static bool FindProcess(const zx::job& job, zx_koid_t process_koid, zx::process* out) { argument 55 // Search this job for the process. 58 if (GetChildKoids(job, ZX_INFO_JOB_PROCESSES, &child_koids, &num_koids)) { 62 if (job.get_child(child_koids[i], ZX_RIGHT_SAME_RIGHTS, &process) != ZX_OK) { 72 if (GetChildKoids(job, ZX_INFO_JOB_CHILDRE [all...] |
/fuchsia/zircon/system/utest/policy/ |
H A D | job-policy.cpp | 12 #include <lib/zx/job.h> 34 // Basic job operation is tested by core-tests. 35 static zx::job make_job() { 36 zx::job job; local 37 if (zx::job::create(*zx::job::default_job(), 0u, &job) != ZX_OK) 38 return zx::job(); 39 return job; 42 make_test_process(const zx::job& job, zx::thread* out_thread, zx_handle_t* ctrl) argument 79 auto job = make_job(); local 111 auto job = make_job(); local 167 auto job = make_job(); local 270 auto job = make_job(); local [all...] |
H A D | rules.mk | 12 $(LOCAL_DIR)/job-policy.cpp \
|
/fuchsia/zircon/kernel/object/ |
H A D | glue.cpp | 52 // Counts and optionally prints all job/process descendants of a job. 56 // If |prefix| is non-null, also prints each job/process. 69 bool OnJob(JobDispatcher* job) final { 72 job->get_name(name); 73 printf("%sjob %6" PRIu64 " '%s'\n", prefix_, job->get_koid(), name); 81 // It's a race, but will stop us from re-killing a job that only has 120 printf("OOM: Finding a job to kill...\n"); 127 JobDispatcher::ForEachJob([&](JobDispatcher* job) { 132 // We want to kill a job tha [all...] |
H A D | job_dispatcher.cpp | 25 // The starting max_height value of the root job. 67 // job is either 110 auto job = fbl::AdoptRef(new (&ac) JobDispatcher(0u, nullptr, kPolicyEmpty)); local 113 job->set_name(kRootJobName, sizeof(kRootJobName)); 114 return job; 122 // The parent job cannot have children. 127 fbl::RefPtr<JobDispatcher> job = local 132 if (!parent->AddChildJob(job)) { 137 *dispatcher = fbl::move(job); 152 // Set the initial job orde 214 AddChildJob(const fbl::RefPtr<JobDispatcher>& job) argument 240 RemoveChildJob(JobDispatcher* job) argument [all...] |
/fuchsia/zircon/system/dev/audio/intel-hda/controller/ |
H A D | intel-hda-irq.cpp | 133 fbl::unique_ptr<CodecCmdJob> job; 139 // job waiting at the head of the in-flight queue which triggered 144 "but no in-flight job is waiting for it\n", 150 job = in_flight_corb_jobs_.pop_front(); 153 // Sanity checks complete. Pass the response and the job which 155 codec->ProcessSolicitedResponse(resp, fbl::move(job)); 191 zx_status_t IntelHDAController::QueueCodecCmd(fbl::unique_ptr<CodecCmdJob>&& job) { argument 192 ZX_DEBUG_ASSERT(job != nullptr); 194 job->codec_id(), job [all...] |
/fuchsia/zircon/system/ulib/fdio/include/lib/fdio/ |
H A D | spawn.h | 20 // Provides the spawned process with the job in which the process was created. 22 // The spawned process receives the job using the |PA_JOB_DEFAULT| process 47 // Spawn a process in the given job. 55 // If |job| is |ZX_HANDLE_INVALID|, then the process is spawned in 56 // |zx_job_default()|. Does not take ownership of |job|. 59 zx_status_t fdio_spawn(zx_handle_t job, 157 // Spawn a process in the given job. 179 // If |job| is |ZX_HANDLE_INVALID|, then the process is spawned in 180 // |zx_job_default()|. Does not take ownership of |job|. 185 zx_status_t fdio_spawn_etc(zx_handle_t job, [all...] |
/fuchsia/zircon/system/core/devmgr/ |
H A D | devmgr.h | 48 zx_handle_t job, const char* name, 56 const char* me, zx_handle_t job, const char* name, 86 void block_device_watcher(zx_handle_t job, bool netboot);
|
/fuchsia/zircon/system/ulib/task-utils/ |
H A D | walker.cpp | 43 const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth); 118 // get the list of processes under this job 155 const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) { 158 zx_status_t status = do_threads_worker(ctx, koids, job, job_koid, depth); 165 zx_handle_t job, zx_koid_t job_koid, int depth) { 169 // get the list of processes under this job 170 status = fetch_children(job, job_koid, ZX_INFO_JOB_PROCESSES, 178 status = zx_object_get_child(job, koids->entries[n], 214 const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) { 217 zx_status_t status = do_processes_worker(ctx, koids, job, job_koi 154 do_threads( const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) argument 163 do_processes_worker( const walk_ctx_t* ctx, koid_table_t* koids, zx_handle_t job, zx_koid_t job_koid, int depth) argument 213 do_processes( const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) argument 222 do_jobs_worker( const walk_ctx_t* ctx, koid_table_t* koids, zx_handle_t job, zx_koid_t job_koid, int depth) argument 273 do_jobs( const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) argument 282 walk_job_tree_internal( const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) argument [all...] |
/fuchsia/zircon/system/utest/libzx/ |
H A D | traits.cpp | 21 #include <lib/zx/job.h> 135 ASSERT_EQ(zx::process::create(*zx::job::default_job(), "", 0u, 0u, &process, &vmar), ZX_OK); 143 zx::job job; local 144 ASSERT_EQ(zx::job::create(*zx::job::default_job(), 0u, &job), ZX_OK); 145 duplicating(job); 146 user_signaling(job); 147 waiting(job); [all...] |
/fuchsia/zircon/system/utest/spawn/ |
H A D | spawn.cpp | 12 #include <lib/zx/job.h> 85 // Check that we can spawn the lancher process in a job and that the 88 zx::job job; local 89 ASSERT_EQ(ZX_OK, zx::job::create(*zx::job::default_job(), 0, &job)); 91 status = fdio_spawn(job.get(), FDIO_SPAWN_CLONE_ALL, kSpawnLauncher, 95 ASSERT_EQ(ZX_OK, job.kill()); 101 zx::job jo local 510 zx::job job; local [all...] |
/fuchsia/zircon/kernel/syscalls/ |
H A D | exceptions.cpp | 34 auto job = DownCastDispatcher<JobDispatcher>(&dispatcher); 35 if (job) { 36 return job->ResetExceptionPort(debugger, quietly) 76 auto job = DownCastDispatcher<JobDispatcher>(&dispatcher); local 77 if (job) { 87 status = job->SetExceptionPort(eport); 91 eport->SetTarget(job);
|
/fuchsia/zircon/system/ulib/launchpad/ |
H A D | fdio.c | 60 zx_handle_t job; local 61 if (zx_handle_duplicate(zx_job_default(), ZX_RIGHT_SAME_RIGHTS, &job) == ZX_OK) { 62 launchpad_add_handle(lp, job, PA_HND(PA_JOB_DEFAULT, 0));
|
/fuchsia/zircon/system/ulib/mini-process/include/mini-process/ |
H A D | mini-process.h | 40 zx_status_t start_mini_process(zx_handle_t job, zx_handle_t transferred_handle,
|
/fuchsia/zircon/system/utest/task-utils/ |
H A D | walker.cpp | 25 // job/process/thread callbacks. 54 virtual zx_status_t OnJob(int depth, zx_handle_t job, zx_koid_t koid, 58 EXPECT_TRUE(is_valid_handle(job)); 61 EXPECT_EQ(parent_koid, 0, "root job"); 63 EXPECT_NE(parent_koid, 0, "non-root job"); 107 // TODO(dbort): Build a job tree just for the test and walk that instead; 109 // utest/policy (and maybe more) already do their own test job-tree 133 zx_status_t OnJob(int depth, zx_handle_t job, 138 TestTaskEnumerator::OnJob(depth, job, koid, parent_koid)); 191 // The callback on the root job happen [all...] |
/fuchsia/zircon/system/ulib/test-utils/include/test-utils/ |
H A D | test-utils.h | 48 zx_handle_t tu_launch(zx_handle_t job, const char* name, 57 launchpad_t* tu_launch_fdio_init(zx_handle_t job, const char* name, 131 // Create a child job of |job|. 133 zx_handle_t tu_job_create(zx_handle_t job);
|