lkml.org 
[lkml]   [1998]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: mmap(), close(), and dget()
    Jason McMullan wrote:

    > Shouldn't the proper semantics be that unmapping the vma does
    > a dput(), sysctl_close() does a dput(), and that dput() itself
    > calls inode->op.close() when the use count is zero???

    Hi Jason,

    The inode i_op functions operate at a higher level, when there's still a file
    pointer around. Unmapping a vma does indeed do a dput() but the file pointer
    used for mapping the vma is long gone.

    Regards,
    Bill

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