Home
last modified time | relevance | path

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

12345678910>>...40

/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__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 Dnet_device.rst5 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 …]
H A Dinet_connection_sock.rst5 inet_connection_sock struct fast path usage breakdown
11 struct inet_sock icsk_inet read_mostly read_mostly …
12 struct request_sock_queue icsk_accept_queue
13 struct inet_bind_bucket icsk_bind_hash read_mostly …
14 struct inet_bind2_bucket icsk_bind2_hash read_mostly …
15 struct timer_list icsk_retransmit_timer read_write …
16 struct timer_list icsk_delack_timer read_mostly …
22 struct tcp_congestion_ops icsk_ca_ops read_write …
23 struct inet_connection_sock_af_ops icsk_af_ops read_mostly …
24 struct tcp_ulp_ops* icsk_ulp_ops
[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 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 …]
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/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/translations/zh_CN/security/
H A Dcredentials.rst213 在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 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/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/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/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 …]

12345678910>>...40