Home
last modified time | relevance | path

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

12345678910>>...35

/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 …]
/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_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/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_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/scsi/
H A Dscsi_mid_low_api.rst102 函数指针位于结构体struct scsi_host_template中,该结构体实
104struct 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
218struct Scsi_Host相关的引用计数函数主要有以下3种:
[all …]
H A Dlibsas.rst48 ``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/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/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/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/bpf/
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/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/networking/
H A Dtimestamping.rst27 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 …]
/linux/Documentation/pcmcia/
H A Dlocking.rst25 The following functions and callbacks to struct pcmcia_socket must
40 struct pcmcia_callback *callback
42 The following functions and callbacks to struct pcmcia_socket must
48 struct pccard_operations *ops
49 struct pccard_resource_ops *resource_ops;
51 Note that send_event() and `struct pcmcia_callback *callback` must not be
60 struct list_head pcmcia_socket_list;
69 The "main" struct pcmcia_socket is protected as follows (read-only fields
74 struct list_head socket_list;
84 struct pcmcia_callback *callback;
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dmetafmt-intel-ipu3.rst26 The struct :c:type:`ipu3_uapi_4a_config` saves all configurable parameters.
30 struct ipu3_uapi_stats_3a {
31 struct ipu3_uapi_awb_raw_buffer awb_raw_buffer;
32 struct ipu3_uapi_ae_raw_buffer_aligned ae_raw_buffer[IPU3_UAPI_MAX_STRIPES];
33 struct ipu3_uapi_af_raw_buffer af_raw_buffer;
34 struct ipu3_uapi_awb_fr_raw_buffer awb_fr_raw_buffer;
35 struct ipu3_uapi_4a_config stats_4a_config;
38 struct ipu3_uapi_stats_3a_bubble_info_per_stripe stats_3a_bubble_per_stripe;
39 struct ipu3_uapi_ff_status stats_3a_status;
59 struct ipu3_uapi_params {
[all …]
/linux/Documentation/translations/zh_CN/mm/
H A Dhugetlbfs_reserv.rst44 struct resv_map {
45 struct kref refs;
47 struct list_head regions;
49 struct list_head region_cache;
56 struct file_region {
57 struct list_head link;
96 int hugetlb_reserve_pages(struct inode *inode,
98 struct vm_area_struct *vma,
149 struct folio *alloc_hugetlb_folio(struct vm_area_struct *vma,
287 long region_chg(struct resv_map *resv, long f, long t);
[all …]
/linux/Documentation/driver-api/
H A Dnvmem.rst48 static int brcm_nvram_probe(struct platform_device *pdev)
50 struct nvmem_config config = {
63 struct::
65 static const struct nvmem_cell_info foo_nvmem_cell = {
78 static struct nvmem_cell_lookup foo_nvmem_lookup = {
99 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name);
100 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name);
102 void nvmem_cell_put(struct nvmem_cell *cell);
103 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
105 void *nvmem_cell_read(struct nvmem_cell *cell, ssize_t *len);
[all …]
/linux/Documentation/translations/zh_CN/locking/
H A Dmutex-design.rst36 互斥锁由“struct mutex”表示,在include/linux/mutex.h中定义,并在
39 `struct task_struct *` 指针,因此如果无人持有锁,则它的值为空(NULL)。
111 void mutex_lock(struct mutex *lock);
112 void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
113 int mutex_trylock(struct mutex *lock);
117 int mutex_lock_interruptible_nested(struct mutex *lock,
119 int mutex_lock_interruptible(struct mutex *lock);
123 int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);
127 void mutex_unlock(struct mutex *lock);
131 int mutex_is_locked(struct mutex *lock);
[all …]

12345678910>>...35