File: dahdi-sysfs.h

package info (click to toggle)
osmocom-dahdi-linux 0.0~git20241003.b2ea348-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,996 kB
  • sloc: ansic: 116,373; perl: 2,391; sh: 982; makefile: 357
file content (32 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef	DAHDI_SYSFS_H
#define	DAHDI_SYSFS_H

#define	DEVICE_ATTR_READER(name, dev, buf) \
		ssize_t name(struct device *dev, \
			struct device_attribute *attr, \
			char *buf)
#define	DEVICE_ATTR_WRITER(name, dev, buf, count) \
		ssize_t name(struct device *dev, \
			struct device_attribute *attr, \
			const char *buf, size_t count)
#define BUS_ATTR_READER(name, dev, buf) \
	ssize_t name(struct device *dev, \
		struct device_attribute *attr, \
		char *buf)
#define BUS_ATTR_WRITER(name, dev, buf, count) \
		ssize_t name(struct device *dev, \
			struct device_attribute *attr, \
			const char *buf, size_t count)

#define	DRIVER_ATTR_READER(name, drv, buf)	\
		ssize_t name(struct device_driver *drv, char * buf)

/* Global */
int __init dahdi_sysfs_chan_init(const struct file_operations *fops);
void dahdi_sysfs_chan_exit(void);

/* Channel Handling */
int chan_sysfs_create(struct dahdi_chan *chan);
void chan_sysfs_remove(struct dahdi_chan *chan);

#endif	/* DAHDI_SYSFS_H */