dev.h 288 B

1234567891011121314151617
  1. #ifndef _TEST_DEV_H
  2. #define _TEST_DEV_H
  3. #include <linux/fs.h>
  4. typedef struct {
  5. dev_t devno;
  6. struct device *dev; /**< Class device */
  7. unsigned long addr;
  8. struct cdev cdev;
  9. } test_dev_t;
  10. const struct file_operations *test_get_fops(void);
  11. #endif /* _TEST_BASE_H */