Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
contur::IoDescriptor Struct Reference

Unified descriptor handle returned by the kernel I/O layer. More...

#include <io_types.h>

Public Member Functions

constexpr bool valid () const noexcept
 Returns true when descriptor is valid.

Public Attributes

std::int32_t value = -1
 Underlying descriptor value.

Friends

constexpr bool operator== (IoDescriptor lhs, IoDescriptor rhs) noexcept
 Equality comparison for descriptor values.

Detailed Description

Unified descriptor handle returned by the kernel I/O layer.

Definition at line 11 of file io_types.h.

Member Function Documentation

◆ valid()

bool contur::IoDescriptor::valid ( ) const
inlinenodiscardconstexprnoexcept

Returns true when descriptor is valid.

Definition at line 17 of file io_types.h.

References value.

◆ operator==

bool operator== ( IoDescriptor lhs,
IoDescriptor rhs )
friend

Equality comparison for descriptor values.

Definition at line 23 of file io_types.h.

Member Data Documentation

◆ value

std::int32_t contur::IoDescriptor::value = -1

Underlying descriptor value.

Definition at line 14 of file io_types.h.

Referenced by valid().


The documentation for this struct was generated from the following file: