Messages in this thread | | | Date | Thu, 13 May 1999 13:37:24 +0200 | From | Jens Axboe <> | Subject | Re: mmap() question and problem |
| |
On Wed, May 12 1999, fmcgirt@swcp.com wrote: > I have installed 2.2.6 kernel with no problems. but mmap file op has > been changed to delete first arg: > > Old: > int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); > > New: > int (*mmap) (struct file *, struct vm_area_struct *); > > Could someone please tell me the approved way > to get a minor device number other than the old way: > > minor = MINOR(inode->i_rdev); > > Does > > minor = MINOR(file->f_dentry->d_inode->i_dev);
minor = MINOR(file->f_dentry->d_inode->i_rdev);
should work just fine.
-- * Jens Axboe <axboe@image.dk> * Linux CD-ROM Maintainer
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |