Skip to Content
Hands-On Reactive Programming with Python
book

Hands-On Reactive Programming with Python

by Romain Picard
October 2018
Intermediate to advanced
420 pages
10h 26m
English
Packt Publishing
Content preview from Hands-On Reactive Programming with Python

Understanding inotify

The name inotify is a contraction of inode notify. Inodes are the names of the filesystem on a Unix system. So files and directories are implemented as inodes in Linux (as well as on macOS since it implements a lot of Unix features). The inotify API is very simple, and is composed of just three functions. These APIs are system calls, accessible via C APIs in the GNU C standard library:

  • inotify_init
  • inotify_add_watch
  • inotify_rm_watch

When an application needs to monitor a directory or a file, it must first create a monitoring context. This is done with the inotify_init function. This function returns a file descriptor. Then, to actually monitor a file, the inotify_add_watch function must be called. This function takes ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Design Patterns

Python Programming with Design Patterns

James W. Cooper

Publisher Resources

ISBN: 9781789138726Supplemental Content