Module pyinotify :: Class SysCtlINotify
[hide private]
[frames] | no frames]

Class SysCtlINotify

source code


Access (read, write) inotify's variables through sysctl. Usually it requires administrator rights to update them.

Examples:

Instance Methods [hide private]
 
__init__(self, attrname, inotify_wrapper)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
int
get_val(self)
Gets attribute's value.
source code
 
set_val(self, nval)
Sets new attribute's value.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
create(attrname)
Factory method instanciating and returning the right wrapper.
source code
Class Variables [hide private]
  inotify_attrs = {'max_queued_events': 3, 'max_user_instances':...
Properties [hide private]
int value
Gets attribute's value.

Inherited from object: __class__

Method Details [hide private]

__init__(self, attrname, inotify_wrapper)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_val(self)

source code 

Gets attribute's value.

Returns: int
stored value.

set_val(self, nval)

source code 

Sets new attribute's value.

Parameters:
  • nval (int) - replaces current value by nval.

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

inotify_attrs

Value:
{'max_queued_events': 3,
 'max_user_instances': 1,
 'max_user_watches': 2}

Property Details [hide private]

value

Gets attribute's value.

Get Method:
get_val(self) - Gets attribute's value.
Set Method:
set_val(self, nval) - Sets new attribute's value.
Type:
int