#include <linux/kernel.h>
#include <linux/mutex.h>
#include <linux/devres.h>
#include <linux/kobject.h>
#include <linux/fs.h>
#include <linux/sysfs.h>
#include <linux/property.h>
#include <linux/fwnode.h>
Go to the source code of this file.
|
| #define | __DEVICE_ATTR_RW_MODE(_name, _mode) __ATTR(_name, _mode, _name##_show, _name##_store) |
| |
| #define | __DEVICE_ATTR_RW(_name) __DEVICE_ATTR_RW_MODE(_name, 0644) |
| |
| #define | DEVICE_ATTR_RW(_name) struct device_attribute dev_attr_##_name = __DEVICE_ATTR_RW(_name) |
| |
| #define | DEVICE_ATTR_RO(_name) struct device_attribute dev_attr_##_name = __ATTR_RO(_name) |
| |
| #define | DEVICE_ATTR(_name, _mode, _show, _store) |
| |
| #define | DEVICE_ATTR_WO(_name) struct device_attribute dev_attr_##_name = __ATTR_WO(_name) |
| |
| #define | dev_warn_once(dev, fmt, ...) |
| |
|
| int | class_register (const void *cls) |
| |
| void | class_unregister (const void *cls) |
| |
| struct device * | device_create (const void *class, const void *parent, unsigned int devt, void *drvdata, const char *fmt,...) |
| |
| void | device_destroy (const void *class, unsigned int devt) |
| |
| int | device_add (struct device *dev) |
| |
| void | device_del (struct device *dev) |
| |
| void | device_initialize (struct device *dev) |
| |
| int | dev_set_name (struct device *dev, const char *fmt,...) |
| |
| void * | get_device (const void *dev) |
| |
| void | put_device (const void *dev) |
| |
| const char * | dev_driver_string (const struct device *dev) |
| |
| int | dev_printk (const char *level, const struct device *dev, const char *fmt,...) |
| |
| void | platform_device_unregister (struct platform_device *pdev) |
| |
| struct dmem_cgroup_region * | dmem_cgroup_register_region (u64 size, const char *name_fmt,...) |
| |
| void | dmem_cgroup_unregister_region (struct dmem_cgroup_region *region) |
| |
| void | check_move_unevictable_folios (struct folio_batch *fbatch) |
| |
◆ __DEVICE_ATTR_RW
◆ __DEVICE_ATTR_RW_MODE
| #define __DEVICE_ATTR_RW_MODE |
( |
|
_name, |
|
|
|
_mode |
|
) |
| __ATTR(_name, _mode, _name##_show, _name##_store) |
◆ dev_warn_once
| #define dev_warn_once |
( |
|
dev, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: do { \
static int __dcl_warned_once; \
if (!__dcl_warned_once) { \
__dcl_warned_once = 1; \
dev_warn((
dev),
fmt, ##__VA_ARGS__); \
} \
} while (0)
const char * fmt
Definition drm_file.h:466
const struct device * dev
Definition drm_print.h:519
◆ DEVICE_ATTR
| #define DEVICE_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store |
|
) |
| |
Value:
_show, _store)
#define __ATTR(_name, _mode, _show, _store)
Definition sysfs.h:53
◆ DEVICE_ATTR_RO
◆ DEVICE_ATTR_RW
◆ DEVICE_ATTR_WO
◆ check_move_unevictable_folios()
| void check_move_unevictable_folios |
( |
struct folio_batch * |
fbatch | ) |
|
◆ class_register()
| int class_register |
( |
const void * |
cls | ) |
|
◆ class_unregister()
| void class_unregister |
( |
const void * |
cls | ) |
|
◆ dev_driver_string()
| const char * dev_driver_string |
( |
const struct device * |
dev | ) |
|
◆ dev_printk()
| int dev_printk |
( |
const char * |
level, |
|
|
const struct device * |
dev, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ dev_set_name()
| int dev_set_name |
( |
struct device * |
dev, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ device_add()
| int device_add |
( |
struct device * |
dev | ) |
|
◆ device_create()
| struct device * device_create |
( |
const void * |
class, |
|
|
const void * |
parent, |
|
|
unsigned int |
devt, |
|
|
void * |
drvdata, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ device_del()
| void device_del |
( |
struct device * |
dev | ) |
|
◆ device_destroy()
| void device_destroy |
( |
const void * |
class, |
|
|
unsigned int |
devt |
|
) |
| |
◆ device_initialize()
| void device_initialize |
( |
struct device * |
dev | ) |
|
◆ dmem_cgroup_register_region()
| struct dmem_cgroup_region * dmem_cgroup_register_region |
( |
u64 |
size, |
|
|
const char * |
name_fmt, |
|
|
|
... |
|
) |
| |
◆ dmem_cgroup_unregister_region()
| void dmem_cgroup_unregister_region |
( |
struct dmem_cgroup_region * |
region | ) |
|
◆ get_device()
| void * get_device |
( |
const void * |
dev | ) |
|
◆ platform_device_unregister()
| void platform_device_unregister |
( |
struct platform_device * |
pdev | ) |
|
◆ put_device()
| void put_device |
( |
const void * |
dev | ) |
|