Home
last modified time | relevance | path

Searched full:struct (Results 1 – 25 of 1011) sorted by relevance

12345678910>>...41

/Documentation/translations/zh_TW/filesystems/
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 …]
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 …]
/Documentation/translations/zh_CN/filesystems/
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 …]
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 …]
/Documentation/translations/zh_CN/core-api/
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 …]
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 …]
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 …]
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 {
159 * ``void init_watch(struct watch *watch, struct watch_queue *wqueue);``
163 * ``int add_watch_to_object(struct watch *watch, struct watch_list *wlist);``
170 int remove_watch_from_object(struct watch_list *wlist,
[all …]
/Documentation/filesystems/
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 …]
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 …]
Ddebugfs.rst35 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent);
39 created in the debugfs root. On success, the return value is a struct
48 struct dentry *debugfs_create_file(const char *name, umode_t mode,
49 struct dentry *parent, void *data,
50 const struct file_operations *fops);
66 struct dentry *parent, void *data,
67 const struct file_operations *fops,
79 struct dentry *parent, u8 *value);
81 struct dentry *parent, u16 *value);
83 struct dentry *parent, u32 *value);
[all …]
Dvfs.rst92 extern int register_filesystem(struct file_system_type *);
93 extern int unregister_filesystem(struct file_system_type *);
95 The passed struct file_system_type describes your filesystem. When a
107 struct file_system_type
115 struct file_system_type {
118 int (*init_fs_context)(struct fs_context *);
119 const struct fs_parameter_spec *parameters;
120 struct dentry *(*mount) (struct file_system_type *, int,
122 void (*kill_sb) (struct super_block *);
123 struct module *owner;
[all …]
/Documentation/translations/zh_CN/driver-api/phy/
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 …]
/Documentation/core-api/
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 …]
Dfolio_queue.rst24 The folio_queue struct forms a single segment in a segmented list of folios
30 struct folio_queue {
31 struct folio_queue *next;
32 struct folio_queue *prev;
64 void folioq_init(struct folio_queue *folioq);
74 Folios can be set in the next unused slot in a segment struct by calling one
77 unsigned int folioq_append(struct folio_queue *folioq,
78 struct folio *folio);
80 unsigned int folioq_append_mark(struct folio_queue *folioq,
81 struct folio *folio);
[all …]
/Documentation/sound/soc/
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 …]
/Documentation/bpf/
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 …]
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 …]
/Documentation/pcmcia/
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 …]
/Documentation/driver-api/media/
Dv4l2-fh.rst6 struct v4l2_fh provides a way to easily keep file handle specific
10 New drivers must use struct v4l2_fh
19 struct v4l2_fh is allocated as a part of the driver's own file handle
23 In many cases the struct v4l2_fh will be embedded in a larger
36 struct my_fh {
38 struct v4l2_fh fh;
43 int my_open(struct file *file)
45 struct my_fh *my_fh;
46 struct video_device *vfd;
64 int my_release(struct file *file)
[all …]
/Documentation/userspace-api/media/v4l/
Dmetafmt-intel-ipu3.rst25 The struct :c:type:`ipu3_uapi_4a_config` saves all configurable parameters.
29 struct ipu3_uapi_stats_3a {
30 struct ipu3_uapi_awb_raw_buffer awb_raw_buffer;
31 struct ipu3_uapi_ae_raw_buffer_aligned ae_raw_buffer[IPU3_UAPI_MAX_STRIPES];
32 struct ipu3_uapi_af_raw_buffer af_raw_buffer;
33 struct ipu3_uapi_awb_fr_raw_buffer awb_fr_raw_buffer;
34 struct ipu3_uapi_4a_config stats_4a_config;
37 struct ipu3_uapi_stats_3a_bubble_info_per_stripe stats_3a_bubble_per_stripe;
38 struct ipu3_uapi_ff_status stats_3a_status;
58 struct ipu3_uapi_params {
[all …]
Dvidioc-g-ext-ctrls.rst20 ``int ioctl(int fd, VIDIOC_G_EXT_CTRLS, struct v4l2_ext_controls *argp)``
24 ``int ioctl(int fd, VIDIOC_S_EXT_CTRLS, struct v4l2_ext_controls *argp)``
28 ``int ioctl(int fd, VIDIOC_TRY_EXT_CTRLS, struct v4l2_ext_controls *argp)``
37 Pointer to struct :c:type:`v4l2_ext_controls`.
48 and ``reserved`` fields of struct
50 struct :c:type:`v4l2_ext_control` array pointed to
54 the ``id``, ``size`` and ``reserved2`` fields of each struct
77 of each struct :c:type:`v4l2_ext_control` and call
83 ``value/value64/string/ptr`` fields of each struct
92 appropriate. In the first case the new value is set in struct
[all …]
/Documentation/translations/zh_CN/video4linux/
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 …]
/Documentation/driver-api/
Dnvmem.rst48 static int brcm_nvram_probe(struct platform_device *pdev)
50 struct nvmem_config config = {
63 nvmem_cell_table struct::
65 static struct nvmem_cell_info foo_nvmem_cells[] = {
73 static struct nvmem_cell_table foo_nvmem_cell_table = {
84 static struct nvmem_cell_lookup foo_nvmem_lookup = {
105 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name);
106 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name);
108 void nvmem_cell_put(struct nvmem_cell *cell);
109 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
[all …]
/Documentation/driver-api/driver-model/
Ddevice.rst5 See the kerneldoc for the struct device.
13 int device_register(struct device * dev);
25 struct device * get_device(struct device * dev);
26 void put_device(struct device * dev);
28 get_device() will return a pointer to the struct device passed to it
34 void lock_device(struct device * dev);
35 void unlock_device(struct device * dev);
43 struct device_attribute {
44 struct attribute attr;
45 ssize_t (*show)(struct device *dev, struct device_attribute *attr,
[all …]

12345678910>>...41