Re: Query regarding inotify and mmap-ed files

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

 



On Thu, Jun 27, 2013 at 05:44:52PM +0800, Chinmay V S wrote:
> Hi All,
> 
> Recently i have implemented fairly simple IPC between two processes by
> mmap-ing the same file in both.
> 
> To send an "event" from one process to the other i thought of using msync()
> and inotify. I found that there is no inotify event that can be triggered
> upon msync() on a mmap-ed file.
> 
> Luckily i was able to patch the kernel and add a new watch to inotify that
> is triggered upon msync.
> 
> https://gist.github.com/TheCodeArtist/5874669
> 
> This is derived from a previous work by Simo Sorce(wayyy back in 2009)
> http://osdir.com/ml/linux-kernel/2009-03/msg13455.html
> 
> This is NOT part of the mainline kernel yet.
> Does this approach have any technical "gotchas"?
> _OR_
> is there a far simpler approach i am missing?

What's wrong with the myriad of socket based options? Use a named pipe or unix
socket?

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux