Re: Open return value - segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-09 at 12:42 +0530, Vijay Ram Chitrapu (RCVIJAYD) wrote:
> static struct file_operations this_fops = {
> 	open:this_open,
> 	ioctl:this_ioctl,
> 	release:this_release,
> };
> 
> int this_open (struct inode *ino, struct file *fp)
> {
>  printk("<1> in open");
>  return 0;
> }
> 
> int this_ioctl(struct inode * ino, struct file *fp, unsigned int cmd, 
> unsigned long len)
> {
>   printk("<1> in ioctl function);
>   return 1;
> }

paste your user program and driver header file (which contains the ioctl
magic number).

--
Ashok S


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux