fs
1# This file was automatically generated by SWIG (https://www.swig.org). 2# Version 4.2.1 3# 4# Do not make changes to this file unless you know what you are doing - modify 5# the SWIG interface file instead. 6 7from sys import version_info as _swig_python_version_info 8from mock_rtems import _fs as _fs 9 10try: 11 import builtins as __builtin__ 12except ImportError: 13 import __builtin__ 14 15def _swig_repr(self): 16 try: 17 strthis = "proxy of " + self.this.__repr__() 18 except __builtin__.Exception: 19 strthis = "" 20 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) 21 22 23def _swig_setattr_nondynamic_instance_variable(set): 24 def set_instance_attr(self, name, value): 25 if name == "this": 26 set(self, name, value) 27 elif name == "thisown": 28 self.this.own(value) 29 elif hasattr(self, name) and isinstance(getattr(type(self), name), property): 30 set(self, name, value) 31 else: 32 raise AttributeError("You cannot add instance attributes to %s" % self) 33 return set_instance_attr 34 35 36def _swig_setattr_nondynamic_class_variable(set): 37 def set_class_attr(cls, name, value): 38 if hasattr(cls, name) and not isinstance(getattr(cls, name), property): 39 set(cls, name, value) 40 else: 41 raise AttributeError("You cannot add class attributes to %s" % cls) 42 return set_class_attr 43 44 45def _swig_add_metaclass(metaclass): 46 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass""" 47 def wrapper(cls): 48 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy()) 49 return wrapper 50 51 52class _SwigNonDynamicMeta(type): 53 """Meta class to enforce nondynamic attributes (no new attributes) for a class""" 54 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__) 55 56 57class rtems_filesystem_location_info_t(object): 58 r""" 59 File system location. 60 61 """ 62 63 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 64 __repr__ = _swig_repr 65 mt_entry_node = property(_fs.rtems_filesystem_location_info_t_mt_entry_node_get, _fs.rtems_filesystem_location_info_t_mt_entry_node_set, doc=r"""mt_entry_node : rtems_chain_node""") 66 node_access = property(_fs.rtems_filesystem_location_info_t_node_access_get, _fs.rtems_filesystem_location_info_t_node_access_set, doc=r"""node_access : p.void""") 67 node_access_2 = property(_fs.rtems_filesystem_location_info_t_node_access_2_get, _fs.rtems_filesystem_location_info_t_node_access_2_set, doc=r"""node_access_2 : p.void""") 68 handlers = property(_fs.rtems_filesystem_location_info_t_handlers_get, _fs.rtems_filesystem_location_info_t_handlers_set, doc=r"""handlers : p.q(const).rtems_filesystem_file_handlers_r""") 69 mt_entry = property(_fs.rtems_filesystem_location_info_t_mt_entry_get, _fs.rtems_filesystem_location_info_t_mt_entry_set, doc=r"""mt_entry : p.rtems_filesystem_mount_table_entry_t""") 70 71 def __init__(self): 72 r"""__init__(rtems_filesystem_location_info_t self) -> rtems_filesystem_location_info_t""" 73 _fs.rtems_filesystem_location_info_t_swiginit(self, _fs.new_rtems_filesystem_location_info_t()) 74 __swig_destroy__ = _fs.delete_rtems_filesystem_location_info_t 75 76# Register rtems_filesystem_location_info_t in _fs: 77_fs.rtems_filesystem_location_info_t_swigregister(rtems_filesystem_location_info_t) 78class rtems_filesystem_global_location_t(object): 79 r""" 80 Global file system location. 81 82 83 84 The global file system locations are used for 85 - the mount point location in the mount table entry, 86 - the file system root location in the mount table entry, 87 - the root directory location in the user environment, and 88 - the current directory location in the user environment. 89 90 During the path evaluation global start locations are obtained to ensure 91 that the current file system will be not unmounted in the meantime. 92 93 To support a release within critical sections of the operating system a 94 deferred release is supported. This is similar to malloc() and free(). 95 96 See also: rtems_filesystem_global_location_obtain() and 97 rtems_filesystem_global_location_release(). 98 """ 99 100 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 101 __repr__ = _swig_repr 102 location = property(_fs.rtems_filesystem_global_location_t_location_get, _fs.rtems_filesystem_global_location_t_location_set, doc=r"""location : rtems_filesystem_location_info_t""") 103 reference_count = property(_fs.rtems_filesystem_global_location_t_reference_count_get, _fs.rtems_filesystem_global_location_t_reference_count_set, doc=r"""reference_count : int""") 104 deferred_released_next = property(_fs.rtems_filesystem_global_location_t_deferred_released_next_get, _fs.rtems_filesystem_global_location_t_deferred_released_next_set, doc=r""" 105 A release within a critical section of the operating system will add this 106 location to a list of deferred released locations. This list is processed 107 in the next rtems_filesystem_global_location_obtain() in FIFO order. 108 """) 109 deferred_released_count = property(_fs.rtems_filesystem_global_location_t_deferred_released_count_get, _fs.rtems_filesystem_global_location_t_deferred_released_count_set, doc=r""" 110 A release within a critical section can happen multiple times. This field 111 counts the deferred releases. 112 """) 113 114 def __init__(self): 115 r"""__init__(rtems_filesystem_global_location_t self) -> rtems_filesystem_global_location_t""" 116 _fs.rtems_filesystem_global_location_t_swiginit(self, _fs.new_rtems_filesystem_global_location_t()) 117 __swig_destroy__ = _fs.delete_rtems_filesystem_global_location_t 118 119# Register rtems_filesystem_global_location_t in _fs: 120_fs.rtems_filesystem_global_location_t_swigregister(rtems_filesystem_global_location_t)
class
rtems_filesystem_location_info_t:
58class rtems_filesystem_location_info_t(object): 59 r""" 60 File system location. 61 62 """ 63 64 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 65 __repr__ = _swig_repr 66 mt_entry_node = property(_fs.rtems_filesystem_location_info_t_mt_entry_node_get, _fs.rtems_filesystem_location_info_t_mt_entry_node_set, doc=r"""mt_entry_node : rtems_chain_node""") 67 node_access = property(_fs.rtems_filesystem_location_info_t_node_access_get, _fs.rtems_filesystem_location_info_t_node_access_set, doc=r"""node_access : p.void""") 68 node_access_2 = property(_fs.rtems_filesystem_location_info_t_node_access_2_get, _fs.rtems_filesystem_location_info_t_node_access_2_set, doc=r"""node_access_2 : p.void""") 69 handlers = property(_fs.rtems_filesystem_location_info_t_handlers_get, _fs.rtems_filesystem_location_info_t_handlers_set, doc=r"""handlers : p.q(const).rtems_filesystem_file_handlers_r""") 70 mt_entry = property(_fs.rtems_filesystem_location_info_t_mt_entry_get, _fs.rtems_filesystem_location_info_t_mt_entry_set, doc=r"""mt_entry : p.rtems_filesystem_mount_table_entry_t""") 71 72 def __init__(self): 73 r"""__init__(rtems_filesystem_location_info_t self) -> rtems_filesystem_location_info_t""" 74 _fs.rtems_filesystem_location_info_t_swiginit(self, _fs.new_rtems_filesystem_location_info_t()) 75 __swig_destroy__ = _fs.delete_rtems_filesystem_location_info_t
File system location.
rtems_filesystem_location_info_t()
72 def __init__(self): 73 r"""__init__(rtems_filesystem_location_info_t self) -> rtems_filesystem_location_info_t""" 74 _fs.rtems_filesystem_location_info_t_swiginit(self, _fs.new_rtems_filesystem_location_info_t())
__init__(rtems_filesystem_location_info_t self) -> rtems_filesystem_location_info_t
thisown
64 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
The membership flag
class
rtems_filesystem_global_location_t:
79class rtems_filesystem_global_location_t(object): 80 r""" 81 Global file system location. 82 83 84 85 The global file system locations are used for 86 - the mount point location in the mount table entry, 87 - the file system root location in the mount table entry, 88 - the root directory location in the user environment, and 89 - the current directory location in the user environment. 90 91 During the path evaluation global start locations are obtained to ensure 92 that the current file system will be not unmounted in the meantime. 93 94 To support a release within critical sections of the operating system a 95 deferred release is supported. This is similar to malloc() and free(). 96 97 See also: rtems_filesystem_global_location_obtain() and 98 rtems_filesystem_global_location_release(). 99 """ 100 101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 102 __repr__ = _swig_repr 103 location = property(_fs.rtems_filesystem_global_location_t_location_get, _fs.rtems_filesystem_global_location_t_location_set, doc=r"""location : rtems_filesystem_location_info_t""") 104 reference_count = property(_fs.rtems_filesystem_global_location_t_reference_count_get, _fs.rtems_filesystem_global_location_t_reference_count_set, doc=r"""reference_count : int""") 105 deferred_released_next = property(_fs.rtems_filesystem_global_location_t_deferred_released_next_get, _fs.rtems_filesystem_global_location_t_deferred_released_next_set, doc=r""" 106 A release within a critical section of the operating system will add this 107 location to a list of deferred released locations. This list is processed 108 in the next rtems_filesystem_global_location_obtain() in FIFO order. 109 """) 110 deferred_released_count = property(_fs.rtems_filesystem_global_location_t_deferred_released_count_get, _fs.rtems_filesystem_global_location_t_deferred_released_count_set, doc=r""" 111 A release within a critical section can happen multiple times. This field 112 counts the deferred releases. 113 """) 114 115 def __init__(self): 116 r"""__init__(rtems_filesystem_global_location_t self) -> rtems_filesystem_global_location_t""" 117 _fs.rtems_filesystem_global_location_t_swiginit(self, _fs.new_rtems_filesystem_global_location_t()) 118 __swig_destroy__ = _fs.delete_rtems_filesystem_global_location_t
Global file system location.
The global file system locations are used for
- the mount point location in the mount table entry,
- the file system root location in the mount table entry,
- the root directory location in the user environment, and
- the current directory location in the user environment.
During the path evaluation global start locations are obtained to ensure that the current file system will be not unmounted in the meantime.
To support a release within critical sections of the operating system a deferred release is supported. This is similar to malloc() and free().
See also: rtems_filesystem_global_location_obtain() and rtems_filesystem_global_location_release().
rtems_filesystem_global_location_t()
115 def __init__(self): 116 r"""__init__(rtems_filesystem_global_location_t self) -> rtems_filesystem_global_location_t""" 117 _fs.rtems_filesystem_global_location_t_swiginit(self, _fs.new_rtems_filesystem_global_location_t())
__init__(rtems_filesystem_global_location_t self) -> rtems_filesystem_global_location_t
thisown
101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
The membership flag