| /linux/tools/lib/perf/Documentation/ |
| H A D | libperf.txt | 38 struct perf_cpu_map; 40 struct perf_cpu_map *perf_cpu_map__new_any_cpu(void); 41 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list); 42 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map); 43 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, 44 struct perf_cpu_map *other); 45 void perf_cpu_map__put(struct perf_cpu_map *map); 46 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 47 int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 48 bool perf_cpu_map__has_any_cpu_or_is_empty(const struct perf_cpu_map *map); [all …]
|
| /linux/Documentation/networking/net_cachelines/ |
| H A D | net_device.rst | 5 net_device struct fast path usage breakdown 15 struct netdev_name_node* name_node 16 struct dev_ifalias* ifalias 21 struct list_head dev_list 22 struct list_head napi_list 23 struct list_head unreg_list 24 struct list_head close_list 25 struct list_head ptype_all read_mostly … 26 struct list_head ptype_specific read_mostly … 27 struct adj_list [all …]
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | rbtree.rst | 59 struct mytype { 60 struct rb_node node; 69 struct rb_root mytree = RB_ROOT; 79 struct mytype *my_search(struct rb_root *root, char *string) 81 struct rb_node *node = root->rb_node; 84 struct mytype *data = container_of(node, struct mytype, node); 110 int my_insert(struct rb_root *root, struct mytype *data) 112 struct rb_node **new = &(root->rb_node), *parent = NULL; 116 struct mytype *this = container_of(*new, struct mytype, node); 140 void rb_erase(struct rb_node *victim, struct rb_root *tree); [all …]
|
| H A D | kobject.rst | 66 struct uio_map { 67 struct kobject kobj; 68 struct uio_mem *mem; 89 struct uio_map *u_map = container_of(kp, struct uio_map, kobj); 94 struct uio_map { 95 struct kobject kobj; 96 struct uio_mem *mem; 99 #define to_map(map) container_of(map, struct uio_map, kobj) 103 struct uio_map *map = to_map(kobj); 112 void kobject_init(struct kobject *kobj, struct kobj_type *ktype); [all …]
|
| H A D | kref.rst | 37 struct my_data 41 struct kref refcount; 53 struct my_data *data; 89 void data_release(struct kref *ref) 91 struct my_data *data = container_of(ref, struct my_data, refcount); 97 struct my_data *data = cb_data; 107 struct my_data *data; 108 struct task_struct *task; 174 struct my_data 176 struct kref refcount; [all …]
|
| H A D | watch_queue.rst | 61 struct watch_notification { 104 void init_watch_list(struct watch_list *wlist, 105 void (*release_watch)(struct watch *wlist)); 110 * ``void remove_watch_list(struct watch_list *wlist);`` 121 * ``struct watch_queue *get_watch_queue(int fd);`` 126 * ``void put_watch_queue(struct watch_queue *wqueue);`` 138 struct watch { 149 联的观测队列缓冲区时,这将与struct watch_notification::info的WATCH_INFO_ID字段进 159 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);`` 163 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);`` [all …]
|
| H A D | assoc_array.rst | 64 struct assoc_array { 85 struct assoc_array_edit; 91 void assoc_array_apply_edit(struct assoc_array_edit *edit); 98 void assoc_array_cancel_edit(struct assoc_array_edit *edit); 111 struct assoc_array_ops { 162 void assoc_array_init(struct assoc_array *array); 169 struct assoc_array_edit * 170 assoc_array_insert(struct assoc_array *array, 171 const struct assoc_array_ops *ops, 190 struct assoc_array_edit * [all …]
|
| /linux/Documentation/translations/zh_TW/filesystems/ |
| H A D | sysfs.txt | 90 struct attribute { 92 struct module *owner; 97 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr); 98 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr); 106 struct device_attribute { 107 struct attribute attr; 108 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 110 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 114 int device_create_file(struct device *, const struct device_attribute *); 115 void device_remove_file(struct device *, const struct device_attribute *); [all …]
|
| H A D | debugfs.rst | 42 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 52 struct dentry *debugfs_create_file(const char *name, umode_t mode, 53 struct dentry *parent, void *data, 54 const struct file_operations *fops); 63 struct dentry *debugfs_create_file_size(const char *name, umode_t mode, 64 struct dentry *parent, void *data, 65 const struct file_operations *fops, 74 struct dentry *parent, u8 *value); 76 struct dentry *parent, u16 *value); 77 struct dentry *debugfs_create_u32(const char *name, umode_t mode, [all …]
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | sysfs.txt | 87 struct attribute { 89 struct module *owner; 94 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr); 95 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr); 103 struct device_attribute { 104 struct attribute attr; 105 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 107 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 111 int device_create_file(struct device *, const struct device_attribute *); 112 void device_remove_file(struct device *, const struct device_attribute *); [all …]
|
| H A D | debugfs.rst | 41 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 51 struct dentry *debugfs_create_file(const char *name, umode_t mode, 52 struct dentry *parent, void *data, 53 const struct file_operations *fops); 62 struct dentry *debugfs_create_file_size(const char *name, umode_t mode, 63 struct dentry *parent, void *data, 64 const struct file_operations *fops, 73 struct dentry *parent, u8 *value); 75 struct dentry *parent, u16 *value); 76 struct dentry *debugfs_create_u32(const char *name, umode_t mode, [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | locking.rst | 20 int (*d_revalidate)(struct inode *, const struct qstr *, 21 struct dentry *, unsigned int); 22 int (*d_weak_revalidate)(struct dentry *, unsigned int); 23 int (*d_hash)(const struct dentry *, struct qstr *); 24 int (*d_compare)(const struct dentry *, 25 unsigned int, const char *, const struct qstr *); 26 int (*d_delete)(struct dentry *); 27 int (*d_init)(struct dentry *); 28 void (*d_release)(struct dentry *); 29 void (*d_iput)(struct dentry *, struct inode *); [all …]
|
| /linux/Documentation/translations/zh_CN/driver-api/phy/ |
| H A D | phy.rst | 66 void devm_of_phy_provider_unregister(struct device *dev, 67 struct phy_provider *phy_provider); 68 void of_phy_provider_unregister(struct phy_provider *phy_provider); 81 struct phy *phy_create(struct device *dev, struct device_node *node, 82 const struct phy_ops *ops); 83 struct phy *devm_phy_create(struct device *dev, 84 struct device_node *node, 85 const struct phy_ops *ops); 104 struct phy *phy_get(struct device *dev, const char *string); 105 struct phy *devm_phy_get(struct device *dev, const char *string); [all …]
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | scsi_mid_low_api.rst | 102 函数指针位于结构体struct scsi_host_template中,该结构体实 104 对struct scsi_host_template中的对应成员赋NULL。如果在文件 105 作用域定义一个struct scsi_host_template的实例,没有显式初 114 ``static int xxx_sdev_init(struct scsi_device * sdev) { /* code */ }`` 171 LLD用于跟踪struct Scsi_Host的实例可能会非常有用 173 当引用计数为零时,struct Scsi_Host实例会被 206 对于LLD而言,跟踪struct scsi_device实例可能会非常有用(该结构 208 这些实例的所有权归属于中间层(mid-level)。struct scsi_device 213 Scsi_Host结构体已引入引用计数机制。该机制将struct Scsi_Host 218 与struct Scsi_Host相关的引用计数函数主要有以下3种: [all …]
|
| H A D | libsas.rst | 48 ``struct sas_phy`` 54 struct my_phy { 56 struct sas_phy sas_phy; 125 ``struct sas_port`` 138 ``struct sas_ha_struct`` 143 struct my_sas_ha { 145 struct sas_ha_struct sas_ha; 146 struct my_phy phys[MAX_PHYS]; 147 struct sas_port sas_ports[MAX_PHYS]; /* (1) */ 179 void sas_notify_port_event(struct sas_phy *, enum port_event, gfp_t); [all …]
|
| /linux/Documentation/translations/zh_CN/security/ |
| H A D | credentials.rst | 213 在Linux中,一个任务的所有凭据都保存在一个引用计数结构体‘struct cred’中, 252 为了在编译时捕获意外的凭据修改,struct task_struct具有_const_指针指向其凭据集, 253 struct file也是如此。此外,某些函数如 ``get_cred()`` 和 ``put_cred()`` 在 264 const struct cred *current_cred() 277 struct user_struct *current_user(void) Current's user account 290 const struct cred *get_current_cred(void); 292 以及用于获取对一个实际上不存在于struct cred中的凭据的引用的函数:: 294 struct user_struct *get_current_user(void); 295 struct group_info *get_current_groups(void); 311 const struct cred *__task_cred(struct task_struct *task); [all …]
|
| /linux/Documentation/bpf/ |
| H A D | drgn.rst | 99 For example, to print ``struct bpf_prog_aux`` for BPF program id 53077: 124 *(struct bpf_prog_aux *)0xffff8893fad4b400 = { 137 .linked_prog = (struct bpf_prog *)0x0, 143 .trampoline = (struct bpf_trampoline *)0x0, 144 .tramp_hlist = (struct hlist_node){ 145 .next = (struct hlist_node *)0x0, 146 .pprev = (struct hlist_node **)0x0, 148 .attach_func_proto = (const struct btf_type *)0x0, 150 .func = (struct bpf_prog **)0x0, 152 .poke_tab = (struct bpf_jit_poke_descriptor *)0x0, [all …]
|
| H A D | cpumasks.rst | 12 ``struct cpumask`` is a bitmap data structure in the kernel whose indices 26 2.1 ``struct bpf_cpumask *`` 29 ``struct bpf_cpumask *`` is a cpumask that is allocated by BPF, on behalf of a 32 to a ``struct cpumask *``. 34 2.1.1 ``struct bpf_cpumask *`` lifecycle 37 A ``struct bpf_cpumask *`` is allocated, acquired, and released, using the 53 struct cpumask_map_value { 54 struct bpf_cpumask __kptr * cpumask; 57 struct array_map { 60 __type(value, struct cpumask_map_value); [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf.data-file-format.txt | 19 struct perf_header { 23 struct perf_file_section attrs; 24 struct perf_file_section data; 25 struct perf_file_section event_types; 39 struct perf_file_section { 53 struct perf_header_string { 60 struct perf_header_string_list { 62 struct perf_header_string strings[nr]; /* variable length records */ 81 struct build_id_event { 82 struct perf_event_header header; [all …]
|
| /linux/Documentation/core-api/ |
| H A D | rbtree.rst | 53 structures, each instance of struct rb_node is embedded in the data structure 62 Data nodes in an rbtree tree are structures containing a struct rb_node member:: 64 struct mytype { 65 struct rb_node node; 69 When dealing with a pointer to the embedded struct rb_node, the containing data 76 struct rb_root mytree = RB_ROOT; 86 struct mytype *my_search(struct rb_root *root, char *string) 88 struct rb_node *node = root->rb_node; 91 struct mytype *data = container_of(node, struct mytype, node); 118 int my_insert(struct rb_root *root, struct mytype *data) [all …]
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2.py | 6 import struct 260 return struct.pack(fmt, self.session_handle, len(self.nonce), 266 return struct.calcsize(fmt) 278 return struct.pack(fmt, len(self.user_auth), self.user_auth, 283 return struct.calcsize(fmt) 311 return struct.pack(self.__fmt(), 322 return struct.calcsize(self.__fmt()) 399 rc = struct.unpack('>I', rsp[6:10])[0] 401 cc = struct.unpack('>I', cmd[6:10])[0] 413 cmd = struct.pack(fmt, [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | clk.rst | 21 details of its counterpart. First is the common definition of struct 25 drivers/clk/clk.c. Finally there is struct clk_ops, whose operations 29 callbacks registered with struct clk_ops and the corresponding 31 the remainder of this document any reference to a callback in struct 33 implementation of that code. Likewise, references to struct clk_foo 37 Tying the two halves of this interface together is struct clk_hw, which 38 is defined in struct clk_foo and pointed to within struct clk_core. This 45 Below is the common struct clk_core definition from 48 struct clk_core { 50 const struct clk_ops *ops; [all …]
|
| /linux/Documentation/translations/zh_CN/scheduler/ |
| H A D | completion.rst | 33 事件被简化为 ``struct completion`` 中的一个简单标志,被恰如其名地称为‘done’。 43 - 'struct completion' 同步对象的初始化 52 ``struct completion`` 类型的变量,它只有两个字段:: 54 struct completion { 134 void wait_for_completion(struct completion *done) 140 struct completion setup_done; 180 int wait_for_completion_interruptible(struct completion *done) 185 unsigned long wait_for_completion_timeout(struct completion *done, unsigned long timeout) 196 long wait_for_completion_interruptible_timeout(struct completion *done, unsigned long timeout) 205 long wait_for_completion_killable(struct completion *done) [all …]
|
| /linux/Documentation/translations/zh_CN/doc-guide/ |
| H A D | kernel-doc.rst | 152 结构体(struct)、共用体(union)、枚举(enum)类型kernel-doc注释的一般格式为:: 155 * struct 结构体名 - 简要描述. 164 可以用 ``union`` 或 ``enum`` 替换上面示例中的 ``struct`` ,以描述共用体或枚举。 184 * struct 张三 - 简短描述 191 struct 张三 { 206 * struct nested_foobar - a struct with nested unions and structs 207 * @memb1: first member of anonymous union/anonymous struct 208 * @memb2: second member of anonymous union/anonymous struct 209 * @memb3: third member of anonymous union/anonymous struct 210 * @memb4: fourth member of anonymous union/anonymous struct [all …]
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | timestamping.rst | 27 struct __kernel_old_timeval 和 struct __kernel_sock_timeval。 30 与 SO_TIMESTAMP 相同的时间戳机制,但以 struct timespec 格式报告时间戳, 34 控制消息格式对于 SO_TIMESTAMPNS_OLD 为 struct timespec, 35 对于 SO_TIMESTAMPNS_NEW 为 struct __kernel_timespec。 54 始终使用 SO_TIMESTAMP_NEW 时间戳以获得 struct __kernel_sock_timeval 62 此选项与 SO_TIMESTAMP 相同,但返回数据类型有所不同。其 struct timespec 65 始终使用 SO_TIMESTAMPNS_NEW 时间戳获得 struct __kernel_timespec 格式 177 struct msghdr *msg; 226 的单独控制消息中获取,作为 TLV(struct nlattr)类型的列表。这些统计信息允许应 232 消息包含 struct scm_ts_pktinfo,它提供接收数据包的实际接口索引和层 2 长度。 [all …]
|