Go to the source code of this file.
Data Structures | |
| struct | ec_cdev_priv_t |
| Private data structure for file handles. More... | |
Defines | |
| #define | DEBUG 0 |
| Set to 1 to enable device operations debugging. | |
| #define | PAGE_FAULT_VERSION KERNEL_VERSION(2, 6, 23) |
| This is the kernel version from which the .fault member of the vm_operations_struct is usable. | |
| #define | VM_DONTDUMP VM_RESERVED |
| VM_RESERVED disappeared in 3.7. | |
Functions | |
| static int | eccdev_open (struct inode *inode, struct file *filp) |
| Called when the cdev is opened. | |
| static int | eccdev_release (struct inode *inode, struct file *filp) |
| Called when the cdev is closed. | |
| static long | eccdev_ioctl (struct file *filp, unsigned int cmd, unsigned long arg) |
| Called when an ioctl() command is issued. | |
| static int | eccdev_mmap (struct file *filp, struct vm_area_struct *vma) |
| Memory-map callback for the EtherCAT character device. | |
| static int | eccdev_vma_fault (struct vm_area_struct *vma,struct vm_fault *vmf) |
| Page fault callback for a virtual memory area. | |
| int | ec_cdev_init (ec_cdev_t *cdev, ec_master_t *master, dev_t dev_num) |
| Constructor. | |
| void | ec_cdev_clear (ec_cdev_t *cdev) |
| Destructor. | |
Variables | |
| static struct file_operations | eccdev_fops |
| File operation callbacks for the EtherCAT character device. | |
| struct vm_operations_struct | eccdev_vm_ops |
| Callbacks for a virtual memory area retrieved with ecdevc_mmap(). | |
Definition in file cdev.c.
| int eccdev_mmap | ( | struct file * | filp, | |
| struct vm_area_struct * | vma | |||
| ) | [static] |
| static int eccdev_vma_fault | ( | struct vm_area_struct * | vma, | |
| struct vm_fault * | vmf | |||
| ) | [static] |
| int ec_cdev_init | ( | ec_cdev_t * | cdev, | |
| ec_master_t * | master, | |||
| dev_t | dev_num | |||
| ) |
| void ec_cdev_clear | ( | ec_cdev_t * | cdev | ) |
struct file_operations eccdev_fops [static] |
Initial value:
{
.owner = THIS_MODULE,
.open = eccdev_open,
.release = eccdev_release,
.unlocked_ioctl = eccdev_ioctl,
.mmap = eccdev_mmap
}
| struct vm_operations_struct eccdev_vm_ops |
Initial value:
{
.fault = eccdev_vma_fault
}
1.5.6