diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2021-05-11 18:51:59 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2021-05-11 19:00:23 +0000 |
| commit | b8f113cab91f288e5d5e29d21184d1601b87cfdd (patch) | |
| tree | 94eaa824cf283d396608675c00e94fa98f2c4abc /sys/compat/linuxkpi/common/include/linux/cdev.h | |
| parent | 67807f5066a012254da9a4535c0f225377afb66d (diff) | |
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/cdev.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/cdev.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/cdev.h b/sys/compat/linuxkpi/common/include/linux/cdev.h index bdfb7e76c9a7..39a65472e921 100644 --- a/sys/compat/linuxkpi/common/include/linux/cdev.h +++ b/sys/compat/linuxkpi/common/include/linux/cdev.h @@ -2,7 +2,7 @@ * Copyright (c) 2010 Isilon Systems, Inc. * Copyright (c) 2010 iX Systems, Inc. * Copyright (c) 2010 Panasas, Inc. - * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. + * Copyright (c) 2013-2021 Mellanox Technologies, Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -38,6 +38,7 @@ #include <asm/atomic-long.h> +struct device; struct file_operations; struct inode; struct module; @@ -143,6 +144,14 @@ cdev_del(struct linux_cdev *cdev) struct linux_cdev *linux_find_cdev(const char *name, unsigned major, unsigned minor); +int linux_cdev_device_add(struct linux_cdev *, struct device *); +void linux_cdev_device_del(struct linux_cdev *, struct device *); + +#define cdev_device_add(...) \ + linux_cdev_device_add(__VA_ARGS__) +#define cdev_device_del(...) \ + linux_cdev_device_del(__VA_ARGS__) + #define cdev linux_cdev #endif /* _LINUX_CDEV_H_ */ |
