µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::posix::block_device_partition_impl Class Reference

#include <block-device-partition.h>

+ Inheritance diagram for os::posix::block_device_partition_impl:

Public Types

using blknum_t = block_device::blknum_t
 

Public Member Functions

Constructors & Destructor
 block_device_partition_impl (block_device &parent)
 
virtual ~block_device_partition_impl () override
 
Public Member Functions
virtual int do_vioctl (int request, std::va_list args) override
 
virtual int do_vopen (const char *path, int oflag, std::va_list args) override
 
virtual ssize_t do_read_block (void *buf, blknum_t blknum, std::size_t nblocks) override
 
virtual ssize_t do_write_block (const void *buf, blknum_t blknum, std::size_t nblocks) override
 
virtual void do_sync (void) override
 
virtual int do_close (void) override
 
void configure (blknum_t offset, blknum_t nblocks)
 
Public Member Functions
virtual ssize_t do_read (void *buf, std::size_t nbyte) override
 
virtual ssize_t do_write (const void *buf, std::size_t nbyte) override
 
virtual off_t do_lseek (off_t offset, int whence) override
 
Public Member Functions
virtual bool do_is_opened (void) override
 
int open_count (void)
 
Public Member Functions
virtual void do_deallocate (void)
 
virtual bool do_is_connected (void)
 
virtual ssize_t do_writev (const iovec *iov, int iovcnt)
 
virtual int do_vfcntl (int cmd, std::va_list args)
 
virtual int do_isatty (void)
 
virtual int do_fstat (struct stat *buf)
 
off_t offset (void)
 
void offset (off_t offset)
 

Private Attributes

friend block_device_partition
 

Detailed Description

Definition at line 119 of file block-device-partition.h.

Member Typedef Documentation

◆ blknum_t

Constructor & Destructor Documentation

◆ block_device_partition_impl()

os::posix::block_device_partition_impl::block_device_partition_impl ( block_device parent)

Definition at line 69 of file block-device-partition.cpp.

◆ ~block_device_partition_impl()

os::posix::block_device_partition_impl::~block_device_partition_impl ( )
overridevirtual

Definition at line 78 of file block-device-partition.cpp.

Member Function Documentation

◆ configure()

void os::posix::block_device_partition_impl::configure ( blknum_t  offset,
blknum_t  nblocks 
)

Definition at line 104 of file block-device-partition.cpp.

◆ do_close()

int os::posix::block_device_partition_impl::do_close ( void  )
overridevirtual

Implements os::posix::io_impl.

Definition at line 170 of file block-device-partition.cpp.

◆ do_deallocate()

void os::posix::io_impl::do_deallocate ( void  )
virtualinherited

Definition at line 483 of file io.cpp.

◆ do_fstat()

int os::posix::io_impl::do_fstat ( struct stat buf)
virtualinherited

Definition at line 535 of file io.cpp.

◆ do_is_connected()

bool os::posix::io_impl::do_is_connected ( void  )
virtualinherited

Definition at line 497 of file io.cpp.

◆ do_is_opened()

bool os::posix::device_impl::do_is_opened ( void  )
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 219 of file device.cpp.

◆ do_isatty()

int os::posix::io_impl::do_isatty ( void  )
virtualinherited

Reimplemented in os::posix::tty_impl.

Definition at line 528 of file io.cpp.

◆ do_lseek()

off_t os::posix::block_device_impl::do_lseek ( off_t  offset,
int  whence 
)
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 204 of file block-device.cpp.

◆ do_read()

ssize_t os::posix::block_device_impl::do_read ( void *  buf,
std::size_t  nbyte 
)
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 245 of file block-device.cpp.

◆ do_read_block()

ssize_t os::posix::block_device_partition_impl::do_read_block ( void *  buf,
blknum_t  blknum,
std::size_t  nblocks 
)
overridevirtual

Implements os::posix::block_device_impl.

Definition at line 133 of file block-device-partition.cpp.

◆ do_sync()

void os::posix::block_device_partition_impl::do_sync ( void  )
overridevirtual

Implements os::posix::device_impl.

Definition at line 160 of file block-device-partition.cpp.

◆ do_vfcntl()

int os::posix::io_impl::do_vfcntl ( int  cmd,
std::va_list  args 
)
virtualinherited

Definition at line 521 of file io.cpp.

◆ do_vioctl()

int os::posix::block_device_partition_impl::do_vioctl ( int  request,
std::va_list  args 
)
overridevirtual

Implements os::posix::device_impl.

Definition at line 95 of file block-device-partition.cpp.

◆ do_vopen()

int os::posix::block_device_partition_impl::do_vopen ( const char *  path,
int  oflag,
std::va_list  args 
)
overridevirtual

Implements os::posix::device_impl.

Definition at line 121 of file block-device-partition.cpp.

◆ do_write()

ssize_t os::posix::block_device_impl::do_write ( const void *  buf,
std::size_t  nbyte 
)
overridevirtualinherited

Implements os::posix::io_impl.

Definition at line 280 of file block-device.cpp.

◆ do_write_block()

ssize_t os::posix::block_device_partition_impl::do_write_block ( const void *  buf,
blknum_t  blknum,
std::size_t  nblocks 
)
overridevirtual

Implements os::posix::block_device_impl.

Definition at line 146 of file block-device-partition.cpp.

◆ do_writev()

ssize_t os::posix::io_impl::do_writev ( const iovec iov,
int  iovcnt 
)
virtualinherited

Definition at line 503 of file io.cpp.

◆ offset() [1/2]

void os::posix::io_impl::offset ( off_t  offset)
inlineinherited

Definition at line 482 of file io.h.

◆ offset() [2/2]

off_t os::posix::io_impl::offset ( void  )
inlineinherited

Definition at line 476 of file io.h.

◆ open_count()

int os::posix::device_impl::open_count ( void  )
inlineinherited

Definition at line 327 of file device.h.

Member Data Documentation

◆ block_device_partition

friend os::posix::block_device_partition_impl::block_device_partition
private

Definition at line 123 of file block-device-partition.h.


The documentation for this class was generated from the following files: