Home
last modified time | relevance | path

Searched refs:struct (Results 1 – 25 of 1111) sorted by relevance

12345678910>>...45

/linux/tools/lib/perf/Documentation/
H A Dlibperf.txt38 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__read(FILE *file);
43 struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);
44 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
45 struct perf_cpu_map *other);
46 void perf_cpu_map__put(struct perf_cpu_map *map);
47 int perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
48 int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
[all …]
/linux/Documentation/translations/zh_CN/core-api/
H A Drbtree.rst59 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 Dkobject.rst66 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 Dkref.rst37 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 Dwatch_queue.rst61 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 Dassoc_array.rst64 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_CN/filesystems/
H A Dsysfs.txt87 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 Ddebugfs.rst41 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/translations/zh_TW/filesystems/
H A Dsysfs.txt90 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 Ddebugfs.rst42 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/filesystems/
H A Dlocking.rst20 int (*d_revalidate)(struct dentry *, unsigned int);
21 int (*d_weak_revalidate)(struct dentry *, unsigned int);
22 int (*d_hash)(const struct dentry *, struct qstr *);
23 int (*d_compare)(const struct dentry *,
24 unsigned int, const char *, const struct qstr *);
25 int (*d_delete)(struct dentry *);
26 int (*d_init)(struct dentry *);
27 void (*d_release)(struct dentry *);
28 void (*d_iput)(struct dentry *, struct inode *);
29 char *(*d_dname)((struct dentry *dentry, char *buffer, int buflen);
[all …]
H A Dsysfs.rst74 struct attribute {
76 struct module *owner;
81 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
82 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
90 For example, the driver model defines struct device_attribute like::
92 struct device_attribute {
93 struct attribute attr;
94 ssize_t (*show)(struct device *dev, struct device_attribute *attr,
96 ssize_t (*store)(struct device *dev, struct device_attribute *attr,
100 int device_create_file(struct device *, const struct device_attribute *);
[all …]
/linux/tools/power/cpupower/bindings/python/
H A Draw_pylibcpupower.swg50 struct cpufreq_policy {
56 struct cpufreq_available_governors {
58 struct cpufreq_available_governors *next;
59 struct cpufreq_available_governors *first;
62 struct cpufreq_available_frequencies {
64 struct cpufreq_available_frequencies *next;
65 struct cpufreq_available_frequencies *first;
69 struct cpufreq_affected_cpus {
71 struct cpufreq_affected_cpus *next;
72 struct cpufreq_affected_cpus *first;
[all …]
/linux/Documentation/translations/zh_CN/driver-api/phy/
H A Dphy.rst66 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/video4linux/
H A Dv4l2-framework.txt102 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
133 v4l2_device_unregister(struct v4l2_device *v4l2_dev);
142 v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
153 static int callback(struct device *dev, void *p)
155 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
166 struct device_driver *drv;
185 static int drv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
199 void v4l2_device_get(struct v4l2_device *v4l2_dev);
203 int v4l2_device_put(struct v4l2_device *v4l2_dev);
249 struct v4l2_subdev_core_ops {
[all …]
/linux/Documentation/bpf/
H A Ddrgn.rst99 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 Dcpumasks.rst12 ``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/Documentation/core-api/
H A Drbtree.rst53 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 Dtpm2.py6 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 Dclk.rst21 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/tools/perf/Documentation/
H A Dperf.data-file-format.txt19 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/translations/zh_CN/mm/
H A Dhmm.rst16 基石是此类内存的专用struct page(请参阅本文档的第 5 至 7 节)。
98 struct page。这些页面很特殊,因为 CPU 无法映射它们。然而,它们允许使用现有的迁移机
100 struct page可以与现有的 mm 机制进行最简单、最干净的集成。再次,HMM 仅提供帮助程序,
119 int mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub,
120 struct mm_struct *mm, unsigned long start,
122 const struct mmu_interval_notifier_ops *ops);
129 int hmm_range_fault(struct hmm_range *range);
142 struct hmm_range range;
214 事实证明,这最终复制了 struct page 的大部分字段,并且还需要更新许多内核代码路径才
217 大多数内核代码路径从不尝试访问页面后面的内存,而只关心struct page的内容。正因为如此,
[all …]
/linux/Documentation/sound/soc/
H A Dplatform.rst16 struct snd_soc_ops {
17 int (*startup)(struct snd_pcm_substream *);
18 void (*shutdown)(struct snd_pcm_substream *);
19 int (*hw_params)(struct snd_pcm_substream *, struct snd_pcm_hw_params *);
20 int (*hw_free)(struct snd_pcm_substream *);
21 int (*prepare)(struct snd_pcm_substream *);
22 int (*trigger)(struct snd_pcm_substream *, int);
25 The platform driver exports its DMA functionality via struct
29 struct snd_soc_component_driver {
33 int (*probe)(struct snd_soc_component *);
[all …]
/linux/Documentation/translations/zh_CN/scheduler/
H A Dcompletion.rst33 事件被简化为 ``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 Dkernel-doc.rst152 结构体(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 …]

12345678910>>...45