/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-daemon.c | 84 struct daemon { struct 98 static struct daemon __daemon = { 103 "perf daemon {start|signal|stop|ping} [<options>]", 104 "perf daemon [<options>]", 115 static struct daemon_session *daemon__add_session(struct daemon *config, char *name) in daemon__add_session() 133 static struct daemon_session *daemon__find_session(struct daemon *daemon, char *name) in daemon__find_session() argument 137 list_for_each_entry(session, &daemon->sessions, list) { in daemon__find_session() 156 static int session_config(struct daemon *daemon, cons argument 217 struct daemon *daemon = cb; server_config() local 236 struct daemon *daemon = cb; client_config() local 247 check_base(struct daemon *daemon) check_base() argument 282 setup_client_config(struct daemon *daemon) setup_client_config() argument 295 setup_server_config(struct daemon *daemon) setup_server_config() argument 320 daemon_session__run(struct daemon_session *session, struct daemon *daemon) daemon_session__run() argument 394 handle_signalfd(struct daemon *daemon) handle_signalfd() argument 443 daemon_session__wait(struct daemon_session *session, struct daemon *daemon, int secs) daemon_session__wait() argument 471 daemon__has_alive_session(struct daemon *daemon) daemon__has_alive_session() argument 483 daemon__wait(struct daemon *daemon, int secs) daemon__wait() argument 581 setup_server_socket(struct daemon *daemon) setup_server_socket() argument 672 cmd_session_list(struct daemon *daemon, union cmd *cmd, FILE *out) cmd_session_list() argument 763 cmd_session_kill(struct daemon *daemon, union cmd *cmd, FILE *out) cmd_session_kill() argument 786 cmd_session_ping(struct daemon *daemon, union cmd *cmd, FILE *out) cmd_session_ping() argument 809 handle_server_socket(struct daemon *daemon, int sock_fd) handle_server_socket() argument 859 setup_client_socket(struct daemon *daemon) setup_client_socket() argument 891 daemon_session__kill(struct daemon_session *session, struct daemon *daemon) daemon_session__kill() argument 917 daemon__signal(struct daemon *daemon, int sig) daemon__signal() argument 939 daemon__stop(struct daemon *daemon) daemon__stop() argument 947 daemon__kill(struct daemon *daemon) daemon__kill() argument 971 daemon__exit(struct daemon *daemon) daemon__exit() argument 983 daemon__reconfig(struct daemon *daemon) daemon__reconfig() argument 1016 setup_config_changes(struct daemon *daemon) setup_config_changes() argument 1053 process_inotify_event(struct daemon *daemon, char *buf, ssize_t len) process_inotify_event() argument 1074 handle_config_changes(struct daemon *daemon, int conf_fd, bool *config_changed) handle_config_changes() argument 1094 setup_config(struct daemon *daemon) setup_config() argument 1141 check_lock(struct daemon *daemon) check_lock() argument 1180 go_background(struct daemon *daemon) go_background() argument 1232 setup_signalfd(struct daemon *daemon) setup_signalfd() argument 1246 __cmd_start(struct daemon *daemon, struct option parent_options[], int argc, const char **argv) __cmd_start() argument 1359 send_cmd(struct daemon *daemon, union cmd *cmd) send_cmd() argument 1402 send_cmd_list(struct daemon *daemon) send_cmd_list() argument 1414 __cmd_signal(struct daemon *daemon, struct option parent_options[], int argc, const char **argv) __cmd_signal() argument 1443 __cmd_stop(struct daemon *daemon, struct option parent_options[], int argc, const char **argv) __cmd_stop() argument 1466 __cmd_ping(struct daemon *daemon, struct option parent_options[], int argc, const char **argv) __cmd_ping() argument [all...] |
/kernel/linux/linux-5.10/fs/ecryptfs/ |
H A D | miscdev.c | 31 struct ecryptfs_daemon *daemon = file->private_data; in ecryptfs_miscdev_poll() local 34 mutex_lock(&daemon->mux); in ecryptfs_miscdev_poll() 35 if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) { in ecryptfs_miscdev_poll() 37 "daemon\n", __func__); in ecryptfs_miscdev_poll() 40 if (daemon->flags & ECRYPTFS_DAEMON_IN_READ) in ecryptfs_miscdev_poll() 42 if (daemon->flags & ECRYPTFS_DAEMON_IN_POLL) in ecryptfs_miscdev_poll() 44 daemon->flags |= ECRYPTFS_DAEMON_IN_POLL; in ecryptfs_miscdev_poll() 45 mutex_unlock(&daemon->mux); in ecryptfs_miscdev_poll() 46 poll_wait(file, &daemon->wait, pt); in ecryptfs_miscdev_poll() 47 mutex_lock(&daemon in ecryptfs_miscdev_poll() 66 struct ecryptfs_daemon *daemon = NULL; ecryptfs_miscdev_open() local 109 struct ecryptfs_daemon *daemon = file->private_data; ecryptfs_miscdev_release() local 146 ecryptfs_send_miscdev(char *data, size_t data_size, struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, u16 msg_flags, struct ecryptfs_daemon *daemon) ecryptfs_send_miscdev() argument 213 struct ecryptfs_daemon *daemon = file->private_data; ecryptfs_miscdev_read() local 321 ecryptfs_miscdev_response(struct ecryptfs_daemon *daemon, char *data, size_t data_size, u32 seq) ecryptfs_miscdev_response() argument [all...] |
H A D | messaging.c | 94 * @daemon: If return value is zero, points to the desired daemon pointer 102 int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon) in ecryptfs_find_daemon_by_euid() argument 106 hlist_for_each_entry(*daemon, in ecryptfs_find_daemon_by_euid() 109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { in ecryptfs_find_daemon_by_euid() 120 * ecryptfs_spawn_daemon - Create and initialize a new daemon struct 121 * @daemon: Pointer to set to newly allocated daemon struct 130 ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file) in ecryptfs_spawn_daemon() argument 134 (*daemon) in ecryptfs_spawn_daemon() 156 ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon) ecryptfs_exorcise_daemon() argument 205 ecryptfs_process_response(struct ecryptfs_daemon *daemon, struct ecryptfs_message *msg, u32 seq) ecryptfs_process_response() argument 263 struct ecryptfs_daemon *daemon; ecryptfs_send_message_locked() local 426 struct ecryptfs_daemon *daemon; ecryptfs_release_messaging() local [all...] |
H A D | ecryptfs_kernel.h | 618 int ecryptfs_process_response(struct ecryptfs_daemon *daemon, 690 u16 msg_flags, struct ecryptfs_daemon *daemon); 693 ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file); 694 int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon); 695 int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon);
|
/kernel/linux/linux-6.6/fs/ecryptfs/ |
H A D | miscdev.c | 31 struct ecryptfs_daemon *daemon = file->private_data; in ecryptfs_miscdev_poll() local 34 mutex_lock(&daemon->mux); in ecryptfs_miscdev_poll() 35 if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) { in ecryptfs_miscdev_poll() 37 "daemon\n", __func__); in ecryptfs_miscdev_poll() 40 if (daemon->flags & ECRYPTFS_DAEMON_IN_READ) in ecryptfs_miscdev_poll() 42 if (daemon->flags & ECRYPTFS_DAEMON_IN_POLL) in ecryptfs_miscdev_poll() 44 daemon->flags |= ECRYPTFS_DAEMON_IN_POLL; in ecryptfs_miscdev_poll() 45 mutex_unlock(&daemon->mux); in ecryptfs_miscdev_poll() 46 poll_wait(file, &daemon->wait, pt); in ecryptfs_miscdev_poll() 47 mutex_lock(&daemon in ecryptfs_miscdev_poll() 66 struct ecryptfs_daemon *daemon = NULL; ecryptfs_miscdev_open() local 109 struct ecryptfs_daemon *daemon = file->private_data; ecryptfs_miscdev_release() local 146 ecryptfs_send_miscdev(char *data, size_t data_size, struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, u16 msg_flags, struct ecryptfs_daemon *daemon) ecryptfs_send_miscdev() argument 213 struct ecryptfs_daemon *daemon = file->private_data; ecryptfs_miscdev_read() local 322 ecryptfs_miscdev_response(struct ecryptfs_daemon *daemon, char *data, size_t data_size, u32 seq) ecryptfs_miscdev_response() argument [all...] |
H A D | messaging.c | 94 * @daemon: If return value is zero, points to the desired daemon pointer 102 int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon) in ecryptfs_find_daemon_by_euid() argument 106 hlist_for_each_entry(*daemon, in ecryptfs_find_daemon_by_euid() 109 if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) { in ecryptfs_find_daemon_by_euid() 120 * ecryptfs_spawn_daemon - Create and initialize a new daemon struct 121 * @daemon: Pointer to set to newly allocated daemon struct 130 ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file) in ecryptfs_spawn_daemon() argument 134 (*daemon) in ecryptfs_spawn_daemon() 156 ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon) ecryptfs_exorcise_daemon() argument 206 ecryptfs_process_response(struct ecryptfs_daemon *daemon, struct ecryptfs_message *msg, u32 seq) ecryptfs_process_response() argument 265 struct ecryptfs_daemon *daemon; ecryptfs_send_message_locked() local 426 struct ecryptfs_daemon *daemon; ecryptfs_release_messaging() local [all...] |
H A D | ecryptfs_kernel.h | 603 int ecryptfs_process_response(struct ecryptfs_daemon *daemon, 675 u16 msg_flags, struct ecryptfs_daemon *daemon); 678 ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file); 679 int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon); 680 int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon);
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | daemon.sh | 2 # daemon operations 118 line=`perf daemon --config ${config} -x: | head -1` 125 # stop daemon 126 perf daemon stop --config ${config} 137 perf daemon start --config ${config} 139 # Clean up daemon if interrupted. 146 state=`perf daemon ping --config ${config} --session ${session} | awk '{ print $1 }'` 150 echo "FAILED: Timeout waiting for daemon to ping" 159 echo "test daemon list" 162 config=$(mktemp /tmp/perf.daemon [all...] |
/kernel/linux/linux-5.10/fs/cachefiles/ |
H A D | Makefile | 8 daemon.o \
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
H A D | Makefile | 11 daemon-objs := daemon_kern.o daemon_user.o 46 obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
|
/kernel/linux/linux-6.6/arch/um/drivers/ |
H A D | Makefile | 11 daemon-objs := daemon_kern.o daemon_user.o 48 obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
|
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | Makefile | 8 daemon.o \
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
H A D | kdb_main.c | 2342 * or sleeping system daemon processes, so tell them how many were suppressed. 2346 int idle = 0, daemon = 0; in kdb_ps_suppressed() local 2358 ++daemon; in kdb_ps_suppressed() 2360 if (idle || daemon) { in kdb_ps_suppressed() 2364 daemon ? " and " : ""); in kdb_ps_suppressed() 2365 if (daemon) in kdb_ps_suppressed() 2366 kdb_printf("%d sleeping system daemon (state M) " in kdb_ps_suppressed() 2367 "process%s", daemon, in kdb_ps_suppressed() 2368 daemon == 1 ? "" : "es"); in kdb_ps_suppressed()
|
/kernel/linux/linux-6.6/kernel/debug/kdb/ |
H A D | kdb_main.c | 2274 * or sleeping system daemon processes, so tell them how many were suppressed. 2278 int idle = 0, daemon = 0; in kdb_ps_suppressed() local 2288 ++daemon; in kdb_ps_suppressed() 2290 if (idle || daemon) { in kdb_ps_suppressed() 2294 daemon ? " and " : ""); in kdb_ps_suppressed() 2295 if (daemon) in kdb_ps_suppressed() 2296 kdb_printf("%d sleeping system daemon (state [ims]) " in kdb_ps_suppressed() 2297 "process%s", daemon, in kdb_ps_suppressed() 2298 daemon == 1 ? "" : "es"); in kdb_ps_suppressed()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | cred.c | 614 * @daemon: A userspace daemon to be used as a reference 620 * @daemon is used to provide a base cred, with the security data derived from 628 struct cred *prepare_kernel_cred(struct task_struct *daemon) in prepare_kernel_cred() argument 633 if (WARN_ON_ONCE(!daemon)) in prepare_kernel_cred() 642 old = get_task_cred(daemon); in prepare_kernel_cred()
|
/kernel/linux/linux-5.10/tools/laptop/freefall/ |
H A D | freefall.c | 134 if (daemon(0, 0) != 0) { in main() 135 perror("daemon"); in main()
|
/kernel/linux/linux-6.6/tools/laptop/freefall/ |
H A D | freefall.c | 134 if (daemon(0, 0) != 0) { in main() 135 perror("daemon"); in main()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | cred.c | 670 * @daemon: A userspace daemon to be used as a reference 676 * @daemon is used to provide a base for the security record, but can be NULL. 677 * If @daemon is supplied, then the security data will be derived from that; 684 struct cred *prepare_kernel_cred(struct task_struct *daemon) in prepare_kernel_cred() argument 695 if (daemon) in prepare_kernel_cred() 696 old = get_task_cred(daemon); in prepare_kernel_cred()
|
/kernel/linux/linux-5.10/tools/hv/ |
H A D | hv_fcopy_daemon.c | 115 * the fcopy operation is aborted by hibernation, the daemon should remove the 118 * the daemon calls hv_copy_cancel() to remove the file; if a file is copied 144 " -n, --no-daemon stay in foreground, don't daemonize\n" in print_usage() 164 {"no-daemon", no_argument, 0, 'n' }, in main() 181 if (daemonize && daemon(1, 0)) { in main() 182 syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno)); in main()
|
H A D | hv_vss_daemon.c | 205 " -n, --no-daemon stay in foreground, don't daemonize\n" in print_usage() 222 {"no-daemon", no_argument, 0, 'n' }, in main() 241 if (daemonize && daemon(1, 0)) in main()
|
/kernel/linux/linux-6.6/tools/hv/ |
H A D | hv_fcopy_daemon.c | 115 * the fcopy operation is aborted by hibernation, the daemon should remove the 118 * the daemon calls hv_copy_cancel() to remove the file; if a file is copied 144 " -n, --no-daemon stay in foreground, don't daemonize\n" in print_usage() 164 {"no-daemon", no_argument, 0, 'n' }, in main() 181 if (daemonize && daemon(1, 0)) { in main() 182 syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno)); in main()
|
H A D | hv_vss_daemon.c | 205 " -n, --no-daemon stay in foreground, don't daemonize\n" in print_usage() 222 {"no-daemon", no_argument, 0, 'n' }, in main() 241 if (daemonize && daemon(1, 0)) in main()
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | gecko.py | 305 http_server_thread.daemon = True
|
/kernel/linux/linux-6.6/tools/thermal/thermal-engine/ |
H A D | thermal-engine.c | 299 if (options.daemonize && daemon(0, 0)) { in main()
|
/kernel/linux/linux-5.10/tools/usb/usbip/src/ |
H A D | usbipd.c | 65 " -D, --daemon\n" 66 " Run as a daemon process.\n" 505 if (daemon(0, 0) < 0) { in do_standalone_mode() 591 { "daemon", no_argument, NULL, 'D' }, in main() 592 { "daemon", no_argument, NULL, 'D' }, in main()
|