/kernel/linux/linux-5.10/drivers/misc/ |
H A D | fastrpc.c | 118 int pid; /* process group id */ member 180 int pid; member 491 ctx->pid = current->pid; in fastrpc_context_alloc() 929 msg->pid = fl->tgid; in fastrpc_invoke_send() 930 msg->tid = current->pid; in fastrpc_invoke_send() 933 msg->pid = 0; in fastrpc_invoke_send()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | numa.c | 1507 pid_t *pids, pid, wpid; in __bench_numa() local 1520 pid = -1; in __bench_numa() 1530 pid = fork(); in __bench_numa() 1531 dprintf(" # process %2d: PID %d\n", i, pid); in __bench_numa() 1533 BUG_ON(pid < 0); in __bench_numa() 1534 if (!pid) { in __bench_numa() 1540 pids[i] = pid; in __bench_numa()
|
/kernel/linux/linux-5.10/mm/ |
H A D | mempolicy.c | 1504 static int kernel_migrate_pages(pid_t pid, unsigned long maxnode, in kernel_migrate_pages() argument 1532 task = pid ? find_task_by_vpid(pid) : current; in kernel_migrate_pages() 1592 SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode, in SYSCALL_DEFINE4() 1596 return kernel_migrate_pages(pid, maxnode, old_nodes, new_nodes); in SYSCALL_DEFINE4() 1712 COMPAT_SYSCALL_DEFINE4(migrate_pages, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE4() 1742 return kernel_migrate_pages(pid, nr_bits + 1, old, new); in COMPAT_SYSCALL_DEFINE4() 2964 * for /proc/mounts, /proc/pid/mounts and /proc/pid/mountinfo. in mpol_parse_str()
|
/kernel/linux/linux-5.10/drivers/media/usb/ttusb-budget/ |
H A D | dvb-ttusb-budget.c | 333 int pid) in ttusb_set_channel() 338 (pid >> 8) & 0xff, pid & 0xff in ttusb_set_channel() 582 int pid = ((muxpack[1] & 0x0F) << 8) | muxpack[2]; in ttusb_process_muxpack() local 586 && (pid == ttusb->channel[channel].pid)) in ttusb_process_muxpack() 896 ttusb_set_channel(ttusb, dvbdmxfeed->index, feed_type, dvbdmxfeed->pid); in ttusb_start_feed() 332 ttusb_set_channel(struct ttusb *ttusb, int chan_id, int filter_type, int pid) ttusb_set_channel() argument
|
/kernel/linux/linux-6.6/drivers/media/usb/ttusb-budget/ |
H A D | dvb-ttusb-budget.c | 333 int pid) in ttusb_set_channel() 338 (pid >> 8) & 0xff, pid & 0xff in ttusb_set_channel() 582 int pid = ((muxpack[1] & 0x0F) << 8) | muxpack[2]; in ttusb_process_muxpack() local 586 && (pid == ttusb->channel[channel].pid)) in ttusb_process_muxpack() 896 ttusb_set_channel(ttusb, dvbdmxfeed->index, feed_type, dvbdmxfeed->pid); in ttusb_start_feed() 332 ttusb_set_channel(struct ttusb *ttusb, int chan_id, int filter_type, int pid) ttusb_set_channel() argument
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify_user.c | 676 metadata.pid = pid_vnr(event->pid); in copy_event_to_user() 678 * For an unprivileged listener, event->pid can be used to identify the in copy_event_to_user() 683 task_tgid(current) != event->pid) in copy_event_to_user() 684 metadata.pid = 0; in copy_event_to_user() 710 * The PIDTYPE_TGID check for an event->pid is performed in copy_event_to_user() 717 if (metadata.pid == 0 || in copy_event_to_user() 718 !pid_has_task(event->pid, PIDTYPE_TGID)) { in copy_event_to_user() 721 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user() 1417 * prevents reporting pid an in SYSCALL_DEFINE2() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | rtl8xxxu.h | 994 u8 pid; /* 0xb9 */ member 1098 u8 pid; member 1143 u8 pid; /* 0xd2 */ member 1184 u8 pid; /* 0xd2 */ member 1218 u8 pid; /* 0xd2 */ member 1253 u8 pid[2]; /* 0x1c2 */ member 1283 u8 pid[2]; /* 0x102 */ member
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | numa.c | 1567 pid_t *pids, pid, wpid; in __bench_numa() local 1580 pid = -1; in __bench_numa() 1590 pid = fork(); in __bench_numa() 1591 dprintf(" # process %2d: PID %d\n", i, pid); in __bench_numa() 1593 BUG_ON(pid < 0); in __bench_numa() 1594 if (!pid) { in __bench_numa() 1600 pids[i] = pid; in __bench_numa()
|
/kernel/linux/linux-6.6/mm/ |
H A D | migrate.c | 2371 static struct mm_struct *find_mm_struct(pid_t pid, nodemask_t *mem_nodes) in find_mm_struct() argument 2380 if (!pid) { in find_mm_struct() 2388 task = find_task_by_vpid(pid); in find_mm_struct() 2422 static int kernel_move_pages(pid_t pid, unsigned long nr_pages, in kernel_move_pages() argument 2438 mm = find_mm_struct(pid, &task_nodes); in kernel_move_pages() 2452 SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, in SYSCALL_DEFINE6() 2457 return kernel_move_pages(pid, nr_pages, pages, nodes, status, flags); in SYSCALL_DEFINE6()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_output.c | 511 trace_find_cmdline(entry->pid, comm); in lat_print_generic() 514 comm, entry->pid, cpu); in lat_print_generic() 615 trace_find_cmdline(entry->pid, comm); in trace_print_context() 617 trace_seq_printf(s, "%16s-%-7d ", comm, entry->pid); in trace_print_context() 620 unsigned int tgid = trace_find_tgid(entry->pid); in trace_print_context() 657 trace_find_cmdline(entry->pid, comm); in trace_print_lat_context() 661 comm, entry->pid, iter->cpu, entry->flags, in trace_print_lat_context()
|
/third_party/libuv/test/ |
H A D | test-spawn.c | 113 err = uv_kill(process->pid, 0); in kill_cb() 220 err = waitpid(process.pid, &status, 0); in TEST_IMPL() 843 ASSERT_EQ(process.pid, uv_process_get_pid(&process)); in TEST_IMPL() 845 r = uv_kill(process.pid, 0); in TEST_IMPL() 848 r = uv_kill(process.pid, SIGTERM); in TEST_IMPL() 1076 r = uv_kill(process.pid, 0); in TEST_IMPL() 1080 r = uv_kill(process.pid, SIGTERM); in TEST_IMPL()
|
/foundation/ability/ability_runtime/test/unittest/ability_manager_service_first_test/ |
H A D | ability_manager_service_first_test.cpp | 1086 int32_t pid = 1; in HWTEST_F() local 1088 EXPECT_EQ(abilityMs_->RecordProcessExitReason(pid, exitReason), ERR_PERMISSION_DENIED); in HWTEST_F() 1102 int32_t pid = 0; in HWTEST_F() local 1104 EXPECT_EQ(abilityMs_->ForceExitApp(pid, exitReason), ERR_PERMISSION_DENIED); in HWTEST_F() 1314 pid_t pid = 8145; in HWTEST_F() local 1315 abilityMs_->AppRecoverKill(pid, StateReason::CPP_CRASH); in HWTEST_F() 1316 abilityMs_->AppRecoverKill(pid, StateReason::JS_ERROR); in HWTEST_F() 1317 abilityMs_->AppRecoverKill(pid, StateReason::LIFECYCLE); in HWTEST_F() 1318 abilityMs_->AppRecoverKill(pid, StateReason::APP_FREEZE); in HWTEST_F()
|
/foundation/multimedia/audio_framework/services/audio_policy/client/src/ |
H A D | audio_policy_manager.cpp | 45 pid_t pid = 0; in RegisterDeathRecipientInner() local 47 sptr<AudioServerDeathRecipient> deathRecipient = new(std::nothrow) AudioServerDeathRecipient(pid, uid); in RegisterDeathRecipientInner() 50 [] (pid_t pid, pid_t uid) { AudioPolicyManager::AudioPolicyServerDied(pid, uid); }); in RegisterDeathRecipientInner() 175 void AudioPolicyManager::AudioPolicyServerDied(pid_t pid, pid_t uid) in AudioPolicyServerDied() argument 394 std::string AudioPolicyManager::GetSelectedDeviceInfo(int32_t uid, int32_t pid, AudioStreamType streamType) in GetSelectedDeviceInfo() argument 398 return gsp->GetSelectedDeviceInfo(uid, pid, streamType); in GetSelectedDeviceInfo() 1256 AUDIO_DEBUG_LOG("client pid: %{public}d", clientPid); in UnregisterAudioPolicyServerDiedCb() 2098 bool AudioPolicyManager::IsAllowedPlayback(const int32_t &uid, const int32_t &pid) in IsAllowedPlayback() argument 2102 return gsp->IsAllowedPlayback(uid, pid); in IsAllowedPlayback() [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_manager_test4.cpp | 752 int32_t pid = 1; in HWTEST_F() local 767 sceneSession02->SetCallingPid(pid); in HWTEST_F() 771 sceneSession03->SetCallingPid(pid); in HWTEST_F() 774 auto result = ssm_->GetProcessDrawingState(windowId, pid, currentDrawingContentState); in HWTEST_F() 787 int32_t pid = 10; in HWTEST_F() local 788 bool result = ssm_->GetPreWindowDrawingState(surfaceId, pid, true); in HWTEST_F() 801 result = ssm_->GetPreWindowDrawingState(surfaceId, pid, true); in HWTEST_F() 1718 eventInfo.pid = 0; in HWTEST_F() 1726 eventInfo.pid = 4; in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | nbd.c | 121 pid_t pid; /* pid of nbd-client, if attached */ member 217 return sprintf(buf, "%d\n", nbd->pid); in pid_show() 221 .attr = { .name = "pid", .mode = 0444}, 336 if (nbd->pid) in nbd_size_set() 1291 nbd->pid = 0; in nbd_config_put() 1326 if (nbd->pid) in nbd_start_device() 1345 nbd->pid = task_pid_nr(current); in nbd_start_device() 1627 if (nbd->pid) in nbd_dbg_tasks_show() 1628 seq_printf(s, "recv: %d\n", nbd->pid); in nbd_dbg_tasks_show() [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | tty_io.c | 2217 struct pid *pid; in __tty_fasync() local 2221 pid = tty->pgrp; in __tty_fasync() 2224 pid = task_pid(current); in __tty_fasync() 2227 get_pid(pid); in __tty_fasync() 2229 __f_setown(filp, pid, type, 0); in __tty_fasync() 2230 put_pid(pid); in __tty_fasync() 2319 struct pid *pgrp; in tty_do_resize() 2990 struct pid *session; in __do_SAK()
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | tty_io.c | 2226 struct pid *pid; in __tty_fasync() local 2230 pid = tty->ctrl.pgrp; in __tty_fasync() 2233 pid = task_pid(current); in __tty_fasync() 2236 get_pid(pid); in __tty_fasync() 2238 __f_setown(filp, pid, type, 0); in __tty_fasync() 2239 put_pid(pid); in __tty_fasync() 2328 struct pid *pgrp; in tty_do_resize() 3006 struct pid *session; in __do_SAK()
|
/kernel/linux/linux-6.6/drivers/block/ |
H A D | nbd.c | 131 pid_t pid; /* pid of nbd-client, if attached */ member 227 return sprintf(buf, "%d\n", nbd->pid); in pid_show() 231 .attr = { .name = "pid", .mode = 0444}, 334 if (!nbd->pid) in nbd_set_size() 1336 nbd->pid = 0; in nbd_config_put() 1371 if (nbd->pid) in nbd_start_device() 1382 nbd->pid = task_pid_nr(current); in nbd_start_device() 1388 dev_err(disk_to_dev(nbd->disk), "device_create_file failed for pid!\n"); in nbd_start_device() 1667 if (nbd->pid) in nbd_dbg_tasks_show() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | evsel.c | 1119 * 3) For traced programs attached by perf (pid/tid): 1726 /* The -ESRCH is perf event syscall errno for pid's not found. */ in evsel__ignore_missing_thread() 1744 pr_warning("WARNING: Ignored open failure for pid %d\n", in evsel__ignore_missing_thread() 2024 int pid = -1, err, old_errno; in evsel__open_cpu() local 2040 pid = evsel->cgrp->fd; in evsel__open_cpu() 2057 pid = perf_thread_map__pid(threads, thread); in evsel__open_cpu() 2070 pr_debug2_peo("sys_perf_event_open: pid %d cpu %d group_fd %d flags %#lx", in evsel__open_cpu() 2071 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags); in evsel__open_cpu() 2073 fd = sys_perf_event_open(&evsel->core.attr, pid, in evsel__open_cpu() 2090 test_attr__open(&evsel->core.attr, pid, in evsel__open_cpu() [all...] |
/foundation/multimodalinput/input/service/connect_manager/src/ |
H A D | multimodal_input_connect_proxy.cpp | 219 int32_t MultimodalInputConnectProxy::SetCustomCursor(int32_t pid, int32_t windowId, int32_t focusX, int32_t focusY, in SetCustomCursor() argument 234 WRITEINT32(data, pid, ERR_INVALID_VALUE); in SetCustomCursor() 282 int32_t MultimodalInputConnectProxy::SetMouseHotSpot(int32_t pid, int32_t windowId, int32_t hotSpotX, int32_t hotSpotY) in SetMouseHotSpot() argument 290 WRITEINT32(data, pid, ERR_INVALID_VALUE); in SetMouseHotSpot() 351 int32_t MultimodalInputConnectProxy::SetNapStatus(int32_t pid, int32_t uid, std::string bundleName, int32_t napStatus) in SetNapStatus() argument 360 WRITEINT32(data, pid, ERR_INVALID_VALUE); in SetNapStatus() 715 int32_t MultimodalInputConnectProxy::ClearWindowPointerStyle(int32_t pid, int32_t windowId) in ClearWindowPointerStyle() argument 724 WRITEINT32(data, pid, RET_ERR); in ClearWindowPointerStyle() 1422 READINT32(reply, data.pid, ERR_INVALID_VALUE); in GetAllMmiSubscribedEvents() 1426 std::tuple<int32_t, int32_t, std::string> tuple(data.pid, dat in GetAllMmiSubscribedEvents() 2519 SetClientInfo(int32_t pid, uint64_t readThreadId) SetClientInfo() argument [all...] |
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
H A D | mod.rs | 190 pub pid: ::pid_t, 3084 pid: ::pid_t, in prlimit() 3090 pid: ::pid_t, in prlimit64() 3123 pid: ::pid_t, in process_vm_readv() 3131 pid: ::pid_t, in process_vm_writev() 3216 pub fn sched_getaffinity(pid: ::pid_t, cpusetsize: ::size_t, cpuset: *mut cpu_set_t) in sched_getaffinity() 3219 pid: ::pid_t, in sched_setaffinity() 3252 pub fn sched_rr_get_interval(pid: ::pid_t, tp: *mut ::timespec) -> ::c_int; in sched_rr_get_interval() 3255 pub fn sched_setparam(pid: ::pid_t, param: *const ::sched_param) -> ::c_int; in sched_setparam() 3273 pub fn sched_getparam(pid in prctl() [all...] |
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-trace.c | 900 #include "trace/beauty/pid.c" 1433 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size) in pid__scnprintf_fd() argument 1436 struct thread *thread = machine__find_thread(trace->host, pid, pid); in pid__scnprintf_fd() 2243 sample->pid, sample->tid, sample->cpu); 2292 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); 2368 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); 2439 thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); 2561 struct thread *thread = machine__findnew_thread(trace->host, sample->pid, sample->tid); 2625 sample->pid, 2989 pid_t pid = getpid(); global() local [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | smb2pdu.c | 4268 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in smb2_new_read_req() 4455 io_parms.pid = rdata->pid; in smb2_async_readv() 4705 .pid = wdata->pid, in smb2_async_writev() 4718 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in smb2_async_writev() 4869 req->hdr.Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in SMB2_write() 5296 u64 persistent_fid, u64 volatile_fid, u32 pid, in SMB2_set_info_init() 5310 req->hdr.Id.SyncId.ProcessId = cpu_to_le32(pid); in SMB2_set_info_init() 5345 u64 persistent_fid, u64 volatile_fid, u32 pid, u in send_set_info() 5294 SMB2_set_info_init(struct cifs_tcon *tcon, struct TCP_Server_Info *server, struct smb_rqst *rqst, u64 persistent_fid, u64 volatile_fid, u32 pid, u8 info_class, u8 info_type, u32 additional_info, void **data, unsigned int *size) SMB2_set_info_init() argument 5344 send_set_info(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, u32 pid, u8 info_class, u8 info_type, u32 additional_info, unsigned int num, void **data, unsigned int *size) send_set_info() argument 5404 SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, u32 pid, __le64 *eof) SMB2_set_eof() argument 5753 smb2_lockv(const unsigned int xid, struct cifs_tcon *tcon, const __u64 persist_fid, const __u64 volatile_fid, const __u32 pid, const __u32 num_lock, struct smb2_lock_element *buf) smb2_lockv() argument 5812 SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon, const __u64 persist_fid, const __u64 volatile_fid, const __u32 pid, const __u64 length, const __u64 offset, const __u32 lock_flags, const bool wait) SMB2_lock() argument [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | neighbour.c | 55 u32 pid); 2162 u32 pid, u32 seq, int type, int flags) in neightbl_fill_info() 2167 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndtmsg), flags); in neightbl_fill_info() 2254 u32 pid, u32 seq, int type, in neightbl_fill_param_info() 2260 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndtmsg), flags); in neightbl_fill_param_info() 2563 u32 pid, u32 seq, int type, unsigned int flags) in neigh_fill_info() 2571 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), flags); in neigh_fill_info() 2625 u32 pid, u32 seq, int type, unsigned int flags, in pneigh_fill_info() 2632 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), flags); in pneigh_fill_info() 2975 u32 pid, u3 in neigh_get_reply() 2161 neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl, u32 pid, u32 seq, int type, int flags) neightbl_fill_info() argument 2251 neightbl_fill_param_info(struct sk_buff *skb, struct neigh_table *tbl, struct neigh_parms *parms, u32 pid, u32 seq, int type, unsigned int flags) neightbl_fill_param_info() argument 2562 neigh_fill_info(struct sk_buff *skb, struct neighbour *neigh, u32 pid, u32 seq, int type, unsigned int flags) neigh_fill_info() argument 2624 pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, u32 pid, u32 seq, int type, unsigned int flags, struct neigh_table *tbl) pneigh_fill_info() argument 2974 neigh_get_reply(struct net *net, struct neighbour *neigh, u32 pid, u32 seq) neigh_get_reply() argument 3003 pneigh_get_reply(struct net *net, struct pneigh_entry *neigh, u32 pid, u32 seq, struct neigh_table *tbl) pneigh_get_reply() argument 3507 __neigh_notify(struct neighbour *n, int type, int flags, u32 pid) __neigh_notify() argument [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/include/scene_board/ |
H A D | ui_ability_lifecycle_manager.h | 273 void GetActiveAbilityList(int32_t uid, std::vector<std::string> &abilityList, int32_t pid = NO_PID); 441 bool CheckPid(const std::shared_ptr<AbilityRecord> abilityRecord, const int32_t pid) const;
|