lkml.org 
[lkml]   [1999]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.251 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site