daemon            618 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_process_response(struct ecryptfs_daemon *daemon,
daemon            690 fs/ecryptfs/ecryptfs_kernel.h 			  u16 msg_flags, struct ecryptfs_daemon *daemon);
daemon            693 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file);
daemon            694 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon);
daemon            695 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon);
daemon            102 fs/ecryptfs/messaging.c int ecryptfs_find_daemon_by_euid(struct ecryptfs_daemon **daemon)
daemon            106 fs/ecryptfs/messaging.c 	hlist_for_each_entry(*daemon,
daemon            109 fs/ecryptfs/messaging.c 		if (uid_eq((*daemon)->file->f_cred->euid, current_euid())) {
daemon            130 fs/ecryptfs/messaging.c ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, struct file *file)
daemon            134 fs/ecryptfs/messaging.c 	(*daemon) = kzalloc(sizeof(**daemon), GFP_KERNEL);
daemon            135 fs/ecryptfs/messaging.c 	if (!(*daemon)) {
daemon            139 fs/ecryptfs/messaging.c 	(*daemon)->file = file;
daemon            140 fs/ecryptfs/messaging.c 	mutex_init(&(*daemon)->mux);
daemon            141 fs/ecryptfs/messaging.c 	INIT_LIST_HEAD(&(*daemon)->msg_ctx_out_queue);
daemon            142 fs/ecryptfs/messaging.c 	init_waitqueue_head(&(*daemon)->wait);
daemon            143 fs/ecryptfs/messaging.c 	(*daemon)->num_queued_msg_ctx = 0;
daemon            144 fs/ecryptfs/messaging.c 	hlist_add_head(&(*daemon)->euid_chain,
daemon            156 fs/ecryptfs/messaging.c int ecryptfs_exorcise_daemon(struct ecryptfs_daemon *daemon)
daemon            161 fs/ecryptfs/messaging.c 	mutex_lock(&daemon->mux);
daemon            162 fs/ecryptfs/messaging.c 	if ((daemon->flags & ECRYPTFS_DAEMON_IN_READ)
daemon            163 fs/ecryptfs/messaging.c 	    || (daemon->flags & ECRYPTFS_DAEMON_IN_POLL)) {
daemon            165 fs/ecryptfs/messaging.c 		mutex_unlock(&daemon->mux);
daemon            169 fs/ecryptfs/messaging.c 				 &daemon->msg_ctx_out_queue, daemon_out_list) {
daemon            171 fs/ecryptfs/messaging.c 		daemon->num_queued_msg_ctx--;
daemon            176 fs/ecryptfs/messaging.c 	hlist_del(&daemon->euid_chain);
daemon            177 fs/ecryptfs/messaging.c 	mutex_unlock(&daemon->mux);
daemon            178 fs/ecryptfs/messaging.c 	kzfree(daemon);
daemon            205 fs/ecryptfs/messaging.c int ecryptfs_process_response(struct ecryptfs_daemon *daemon,
daemon            263 fs/ecryptfs/messaging.c 	struct ecryptfs_daemon *daemon;
daemon            266 fs/ecryptfs/messaging.c 	rc = ecryptfs_find_daemon_by_euid(&daemon);
daemon            283 fs/ecryptfs/messaging.c 				   daemon);
daemon            426 fs/ecryptfs/messaging.c 		struct ecryptfs_daemon *daemon;
daemon            434 fs/ecryptfs/messaging.c 			hlist_for_each_entry_safe(daemon, n,
daemon            437 fs/ecryptfs/messaging.c 				rc = ecryptfs_exorcise_daemon(daemon);
daemon             31 fs/ecryptfs/miscdev.c 	struct ecryptfs_daemon *daemon = file->private_data;
daemon             34 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon             35 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) {
daemon             40 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_IN_READ)
daemon             42 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_IN_POLL)
daemon             44 fs/ecryptfs/miscdev.c 	daemon->flags |= ECRYPTFS_DAEMON_IN_POLL;
daemon             45 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon             46 fs/ecryptfs/miscdev.c 	poll_wait(file, &daemon->wait, pt);
daemon             47 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon             48 fs/ecryptfs/miscdev.c 	if (!list_empty(&daemon->msg_ctx_out_queue))
daemon             51 fs/ecryptfs/miscdev.c 	daemon->flags &= ~ECRYPTFS_DAEMON_IN_POLL;
daemon             52 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon             66 fs/ecryptfs/miscdev.c 	struct ecryptfs_daemon *daemon = NULL;
daemon             70 fs/ecryptfs/miscdev.c 	rc = ecryptfs_find_daemon_by_euid(&daemon);
daemon             75 fs/ecryptfs/miscdev.c 	rc = ecryptfs_spawn_daemon(&daemon, file);
daemon             81 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon             82 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_MISCDEV_OPEN) {
daemon             86 fs/ecryptfs/miscdev.c 	daemon->flags |= ECRYPTFS_DAEMON_MISCDEV_OPEN;
daemon             87 fs/ecryptfs/miscdev.c 	file->private_data = daemon;
daemon             90 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon            109 fs/ecryptfs/miscdev.c 	struct ecryptfs_daemon *daemon = file->private_data;
daemon            112 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon            113 fs/ecryptfs/miscdev.c 	BUG_ON(!(daemon->flags & ECRYPTFS_DAEMON_MISCDEV_OPEN));
daemon            114 fs/ecryptfs/miscdev.c 	daemon->flags &= ~ECRYPTFS_DAEMON_MISCDEV_OPEN;
daemon            116 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon            119 fs/ecryptfs/miscdev.c 	rc = ecryptfs_exorcise_daemon(daemon);
daemon            148 fs/ecryptfs/miscdev.c 			  u16 msg_flags, struct ecryptfs_daemon *daemon)
daemon            163 fs/ecryptfs/miscdev.c 	list_add_tail(&msg_ctx->daemon_out_list, &daemon->msg_ctx_out_queue);
daemon            166 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon            167 fs/ecryptfs/miscdev.c 	daemon->num_queued_msg_ctx++;
daemon            168 fs/ecryptfs/miscdev.c 	wake_up_interruptible(&daemon->wait);
daemon            169 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon            213 fs/ecryptfs/miscdev.c 	struct ecryptfs_daemon *daemon = file->private_data;
daemon            221 fs/ecryptfs/miscdev.c 	mutex_lock(&daemon->mux);
daemon            222 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) {
daemon            228 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_IN_READ) {
daemon            233 fs/ecryptfs/miscdev.c 	daemon->flags |= ECRYPTFS_DAEMON_IN_READ;
daemon            235 fs/ecryptfs/miscdev.c 	if (list_empty(&daemon->msg_ctx_out_queue)) {
daemon            236 fs/ecryptfs/miscdev.c 		mutex_unlock(&daemon->mux);
daemon            238 fs/ecryptfs/miscdev.c 			daemon->wait, !list_empty(&daemon->msg_ctx_out_queue));
daemon            239 fs/ecryptfs/miscdev.c 		mutex_lock(&daemon->mux);
daemon            245 fs/ecryptfs/miscdev.c 	if (daemon->flags & ECRYPTFS_DAEMON_ZOMBIE) {
daemon            249 fs/ecryptfs/miscdev.c 	if (list_empty(&daemon->msg_ctx_out_queue)) {
daemon            255 fs/ecryptfs/miscdev.c 	msg_ctx = list_first_entry(&daemon->msg_ctx_out_queue,
daemon            308 fs/ecryptfs/miscdev.c 	daemon->flags &= ~ECRYPTFS_DAEMON_IN_READ;
daemon            309 fs/ecryptfs/miscdev.c 	mutex_unlock(&daemon->mux);
daemon            321 fs/ecryptfs/miscdev.c static int ecryptfs_miscdev_response(struct ecryptfs_daemon *daemon, char *data,
daemon            334 fs/ecryptfs/miscdev.c 	rc = ecryptfs_process_response(daemon, msg, seq);
daemon            681 kernel/cred.c  struct cred *prepare_kernel_cred(struct task_struct *daemon)
daemon            692 kernel/cred.c  	if (daemon)
daemon            693 kernel/cred.c  		old = get_task_cred(daemon);
daemon           2288 kernel/debug/kdb/kdb_main.c 	int idle = 0, daemon = 0;
daemon           2300 kernel/debug/kdb/kdb_main.c 			++daemon;
daemon           2302 kernel/debug/kdb/kdb_main.c 	if (idle || daemon) {
daemon           2306 kernel/debug/kdb/kdb_main.c 				   daemon ? " and " : "");
daemon           2307 kernel/debug/kdb/kdb_main.c 		if (daemon)
daemon           2309 kernel/debug/kdb/kdb_main.c 				   "process%s", daemon,
daemon           2310 kernel/debug/kdb/kdb_main.c 				   daemon == 1 ? "" : "es");
daemon            165 tools/hv/hv_fcopy_daemon.c 	if (daemonize && daemon(1, 0)) {
daemon           1397 tools/hv/hv_kvp_daemon.c 	if (daemonize && daemon(1, 0))
daemon            229 tools/hv/hv_vss_daemon.c 	if (daemonize && daemon(1, 0))
daemon            134 tools/laptop/freefall/freefall.c 	if (daemon(0, 0) != 0) {
daemon            505 tools/usb/usbip/src/usbipd.c 		if (daemon(0, 0) < 0) {