| /system/ulib/zx/include/lib/zx/ |
| A D | job.h | 15 class job : public task<job> { 19 constexpr job() = default; 25 job(job&& other) : task(other.release()) {} in job() function 27 job& operator=(job&& other) { 32 static zx_status_t create(const zx::job& parent, uint32_t options, job* result); 35 using task<job>::get_child; 37 job* result) const { in get_child() 39 job h; in get_child() 54 static inline unowned<job> default_job() { in default_job() 55 return unowned<job>(zx_job_default()); in default_job() [all …]
|
| A D | process.h | 15 class job; variable 39 static zx_status_t create(const job& job, const char* name, uint32_t name_len,
|
| A D | profile.h | 31 static zx_status_t create(const job& job, const zx_profile_info_t* info, profile* result);
|
| /system/utest/policy/ |
| A D | job-policy.cpp | 34 static zx::job make_job() { in make_job() 35 zx::job job; in make_job() local 36 if (zx::job::create(*zx::job::default_job(), 0u, &job) != ZX_OK) in make_job() 37 return zx::job(); in make_job() 38 return job; in make_job() 41 static zx::process make_test_process(const zx::job& job, zx::thread* out_thread, in make_test_process() argument 78 auto job = make_job(); in AbsThenRel() local 79 EXPECT_EQ(job.set_policy( in AbsThenRel() 110 auto job = make_job(); in invalid_calls() local 166 auto job = make_job(); in TestInvokingPolicy() local [all …]
|
| /system/ulib/zx/ |
| A D | job.cpp | 12 zx_status_t job::create(const job& parent, uint32_t flags, job* result) { in create() 14 job h; in create() 21 zx_status_t job::get_child(uint64_t koid, zx_rights_t rights, in get_child()
|
| A D | profile.cpp | 12 zx_status_t profile::create(const job& job, const zx_profile_info_t* info, profile* result) { in create() argument 13 return zx_profile_create(job.get(), info, result->reset_and_get_address()); in create()
|
| A D | process.cpp | 15 zx_status_t process::create(const job& job, const char* name, uint32_t name_len, in create() argument 20 job.get(), name, name_len, flags, proc->reset_and_get_address(), in create()
|
| /system/core/svchost/ |
| A D | crashsvc.cpp | 23 static bool GetChildKoids(const zx::job& job, zx_object_info_topic_t child_kind, in GetChildKoids() argument 32 if (job.get_info(child_kind, koids->get(), count * sizeof(zx_koid_t), &actual, in GetChildKoids() 55 static bool FindProcess(const zx::job& job, zx_koid_t process_koid, zx::process* out) { in FindProcess() argument 58 if (job.get_child(process_koid, ZX_RIGHT_SAME_RIGHTS, &process) == ZX_OK) { in FindProcess() 66 if (GetChildKoids(job, ZX_INFO_JOB_CHILDREN, &child_koids, &num_koids)) { in FindProcess() 68 zx::job child_job; in FindProcess() 69 if (job.get_child(child_koids[i], ZX_RIGHT_SAME_RIGHTS, &child_job) != ZX_OK) { in FindProcess() 82 zx::job root_job; 159 void start_crashsvc(zx::job root_job, zx_handle_t analyzer_svc) { in start_crashsvc()
|
| /system/ulib/devmgr-launcher/ |
| A D | launcher.cpp | 31 zx_status_t Launch(Args args, zx::job* devmgr_job, zx::channel* devfs_root) { in Launch() 33 zx::job job, job_copy; in Launch() local 34 zx_status_t status = zx::job::create(*zx::job::default_job(), 0, &job); in Launch() 38 status = job.duplicate(ZX_RIGHT_SAME_RIGHTS, &job_copy); in Launch() 124 status = fdio_spawn_etc(job.get(), in Launch() 137 *devmgr_job = std::move(job); in Launch()
|
| /system/dev/audio/intel-hda/controller/ |
| A D | intel-hda-irq.cpp | 135 fbl::unique_ptr<CodecCmdJob> job; in ProcessRIRB() local 152 job = in_flight_corb_jobs_.pop_front(); in ProcessRIRB() 157 codec->ProcessSolicitedResponse(resp, std::move(job)); in ProcessRIRB() 194 ZX_DEBUG_ASSERT(job != nullptr); in QueueCodecCmd() 196 job->codec_id(), job->nid(), job->verb().val); in QueueCodecCmd() 212 pending_corb_jobs_.push_back(std::move(job)); in QueueCodecCmd() 217 SendCodecCmdLocked(job->command()); in QueueCodecCmd() 218 in_flight_corb_jobs_.push_back(std::move(job)); in QueueCodecCmd() 259 auto job = pending_corb_jobs_.pop_front(); in ProcessCORB() local 261 SendCodecCmdLocked(job->command()); in ProcessCORB() [all …]
|
| A D | intel-hda-codec.cpp | 117 auto job = CodecCmdJobAllocator::New(cmd); in Startup() local 119 if (job == nullptr) { in Startup() 124 zx_status_t res = controller_.QueueCodecCmd(std::move(job)); in Startup() 153 fbl::unique_ptr<CodecCmdJob>&& job) { in ProcessSolicitedResponse() argument 173 } else if (job->response_channel() != nullptr) { in ProcessSolicitedResponse() 175 resp.data, resp.data_ex, job->response_channel().get()); in ProcessSolicitedResponse() 179 SendCORBResponse(job->response_channel(), resp, job->transaction_id()); in ProcessSolicitedResponse() 431 auto job = CodecCmdJobAllocator::New(std::move(chan_ref), in ProcessSendCORBCmd() local 435 if (job == nullptr) in ProcessSendCORBCmd() 438 zx_status_t res = controller_.QueueCodecCmd(std::move(job)); in ProcessSendCORBCmd()
|
| /system/ulib/task-utils/ |
| A D | walker.cpp | 45 const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth); 157 const walk_ctx_t* ctx, zx_handle_t job, zx_koid_t job_koid, int depth) { in do_threads() argument 167 zx_handle_t job, zx_koid_t job_koid, int depth) { in do_processes_worker() argument 172 status = fetch_children(job, job_koid, ZX_INFO_JOB_PROCESSES, in do_processes_worker() 180 status = zx_object_get_child(job, koids->entries[n], in do_processes_worker() 226 zx_handle_t job, zx_koid_t job_koid, int depth) { in do_jobs_worker() argument 231 status = fetch_children(job, job_koid, ZX_INFO_JOB_CHILDREN, in do_jobs_worker() 240 status = zx_object_get_child(job, koids->entries[n], in do_jobs_worker() 279 zx_status_t status = do_jobs_worker(ctx, koids, job, job_koid, depth); in do_jobs() 288 zx_status_t status = do_processes(ctx, job, job_koid, depth); in walk_job_tree_internal() [all …]
|
| /system/core/devmgr/shared/ |
| A D | fdio.h | 41 const zx::job& job, const char* name, 48 const char* me, const zx::job& job, const char* name,
|
| A D | fdio.cpp | 62 const zx::job& job, const char* name, in devmgr_launch() argument 81 zx::job job_copy; in devmgr_launch() 82 status = job.duplicate(CHILD_JOB_RIGHTS, &job_copy); in devmgr_launch() 141 const char* me, const zx::job& job, const char* name, in devmgr_launch_cmdline() argument 169 job, name, load, ctx, argc, (const char* const*)argv, nullptr, -1, in devmgr_launch_cmdline()
|
| /system/ulib/fdio/include/lib/fdio/ |
| A D | spawn.h | 64 zx_status_t fdio_spawn(zx_handle_t job, 190 zx_status_t fdio_spawn_etc(zx_handle_t job, 207 zx_status_t fdio_spawn_vmo(zx_handle_t job,
|
| /system/utest/libzx/ |
| A D | traits.cpp | 134 ASSERT_EQ(zx::process::create(*zx::job::default_job(), "", 0u, 0u, &process, &vmar), ZX_OK); in traits_test() 142 zx::job job; in traits_test() local 143 ASSERT_EQ(zx::job::create(*zx::job::default_job(), 0u, &job), ZX_OK); in traits_test() 144 duplicating(job); in traits_test() 145 user_signaling(job); in traits_test() 146 waiting(job); in traits_test() 147 peering(job); in traits_test()
|
| /system/utest/spawn/ |
| A D | spawn.cpp | 88 zx::job job; in spawn_launcher_test() local 89 ASSERT_EQ(ZX_OK, zx::job::create(*zx::job::default_job(), 0, &job)); in spawn_launcher_test() 91 status = fdio_spawn(job.get(), FDIO_SPAWN_CLONE_ALL, kSpawnLauncher, in spawn_launcher_test() 95 ASSERT_EQ(ZX_OK, job.kill()); in spawn_launcher_test() 101 zx::job job; in spawn_launcher_test() local 102 ASSERT_EQ(ZX_OK, zx::job::create(*zx::job::default_job(), 0, &job)); in spawn_launcher_test() 109 status = fdio_spawn(job.get(), FDIO_SPAWN_CLONE_ALL, kSpawnLauncher, in spawn_launcher_test() 113 ASSERT_EQ(ZX_OK, job.kill()); in spawn_launcher_test() 510 zx::job job; in spawn_errors_test() local 511 ASSERT_EQ(ZX_OK, zx::job::default_job()->duplicate(0, &job)); in spawn_errors_test() [all …]
|
| /system/fidl/fuchsia-sysinfo/ |
| A D | sysinfo.fidl | 24 // Return the root job handle. 25 1: GetRootJob() -> (zx.status status, handle<job>? job);
|
| /system/core/devmgr/devmgr/ |
| A D | devmgr.h | 21 void devfs_init(const zx::job& root_job); 34 zx::job get_sysinfo_job_root();
|
| /system/ulib/devmgr-integration-test/include/lib/devmgr-integration-test/ |
| A D | fixture.h | 37 const zx::job& containing_job() const { return job_; } in containing_job() 40 zx::job job_;
|
| /system/ulib/launchpad/ |
| A D | fdio.c | 60 zx_handle_t job; in launchpad_clone() local 61 if (zx_handle_duplicate(zx_job_default(), ZX_RIGHT_SAME_RIGHTS, &job) == ZX_OK) { in launchpad_clone() 62 launchpad_add_handle(lp, job, PA_HND(PA_JOB_DEFAULT, 0)); in launchpad_clone()
|
| /system/utest/core/profile/ |
| A D | profile.cpp | 22 ASSERT_EQ(zx::profile::create(zx::job(), nullptr, &profile), ZX_ERR_BAD_HANDLE, ""); in profile_failures_test() 33 zx::job child_job; in profile_failures_test() 34 ASSERT_EQ(zx::job::create(*root_job, 0u, &child_job), ZX_OK, ""); in profile_failures_test()
|
| /system/utest/exception/ |
| A D | exception.c | 524 test_set_close_set(job, /* debugger */ false); in job_set_close_set_test() 525 tu_handle_close(job); in job_set_close_set_test() 816 tu_handle_close(job); in job_handler_test() 872 zx_handle_t nested_job = tu_job_create(job); in nested_job_debug_handler_test() 875 tu_handle_close(job); in nested_job_debug_handler_test() 885 job_debug_handler_test_helper(job, job); in job_debug_handler_test() 886 tu_handle_close(job); in job_debug_handler_test() 897 zx_handle_t job = tu_job_create(parent_job); in grandparent_job_handler_test() local 905 tu_handle_close(job); in grandparent_job_handler_test() 1383 zx_handle_t job; member [all …]
|
| /system/ulib/test-utils/include/test-utils/ |
| 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, 133 zx_handle_t tu_job_create(zx_handle_t job);
|
| /system/utest/task-utils/ |
| A D | walker.cpp | 54 virtual zx_status_t OnJob(int depth, zx_handle_t job, zx_koid_t koid, in OnJob() argument 58 EXPECT_TRUE(is_valid_handle(job)); in OnJob() 133 zx_status_t OnJob(int depth, zx_handle_t job, in OnJob() argument 138 TestTaskEnumerator::OnJob(depth, job, koid, parent_koid)); in OnJob()
|