/* * agent_info - structure managing total information of guest agent * @pipe_size: size of pipe (default 1MB) * @use_stdout: set to true when o option is added (default false) * @cpus: total number of CPUs * @ctl_fd: fd of control path, /dev/virtio-ports/agent-ctl-path * @rw_ti: structure managing information of read/write threads
*/ struct agent_info { unsignedlong pipe_size; bool use_stdout; int cpus; int ctl_fd; struct rw_thread_info *rw_ti[MAX_CPUS];
};
/* * rw_thread_info - structure managing a read/write thread a cpu * @cpu_num: cpu number operating this read/write thread * @in_fd: fd of reading trace data path in cpu_num * @out_fd: fd of writing trace data path in cpu_num * @read_pipe: fd of read pipe * @write_pipe: fd of write pipe * @pipe_size: size of pipe (default 1MB)
*/ struct rw_thread_info { int cpu_num; int in_fd; int out_fd; int read_pipe; int write_pipe; unsignedlong pipe_size;
};
/* use for stopping rw threads */ externbool global_sig_receive;
/* use for notification */ externbool global_run_operation; extern pthread_mutex_t mutex_notify; extern pthread_cond_t cond_wakeup;
/* for controller of read/write threads */ externint rw_ctl_init(constchar *ctl_path); externvoid *rw_ctl_loop(int ctl_fd);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.