/* * Intel MIC Platform Software Stack (MPSS) * * Copyright(c) 2013 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * The full GNU General Public License is included in this distribution in * the file called "COPYING". * * Intel MIC User Space Tools. */ #ifndef _MPSSD_H_ #define _MPSSD_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define MICSYSFSDIR "/sys/class/mic" #define LOGFILE_NAME "/var/log/mpssd" #define PAGE_SIZE 4096 struct mic_console_info { pthread_t console_thread; int virtio_console_fd; void *console_dp; }; struct mic_net_info { pthread_t net_thread; int virtio_net_fd; int tap_fd; void *net_dp; }; struct mic_virtblk_info { pthread_t block_thread; int virtio_block_fd; void *block_dp; volatile sig_atomic_t signaled; char *backend_file; int backend; void *backend_addr; long backend_size; }; struct mic_info { int id; char *name; pthread_t config_thread; pthread_t init_thread; pid_t pid; struct mic_console_info mic_console; struct mic_net_info mic_net; struct mic_virtblk_info mic_virtblk; int restart; int boot_on_resume; struct mic_info *next; }; __attribute__((format(printf, 1, 2))) void mpsslog(char *format, ...); char *readsysfs(char *dir, char *entry); int setsysfs(char *dir, char *entry, char *value); #endif 7e7c477'>diff
diff options
context:
space:
mode:
authorFeng <fgao@ikuai8.com>2017-01-20 21:40:43 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-02 14:30:19 +0100
commit10435c1192d06bdb0bac7666452d8219d7e7c477 (patch)
tree93b76419142fe17b1d162d062c663297a3e8a965 /include/dt-bindings/clock/hi6220-clock.h
parent1a28ad74ebd8f9d3c7eae0d781f72a6d30545e17 (diff)
netfilter: nf_tables: Eliminate duplicated code in nf_tables_table_enable()
If something fails in nf_tables_table_enable(), it unregisters the chains. But the rollback code is the same as nf_tables_table_disable() almostly, except there is one counter check. Now create one wrapper function to eliminate the duplicated codes. Signed-off-by: Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/dt-bindings/clock/hi6220-clock.h')