µ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_impl Class Referenceabstract

#include <block-device.h>

+ Inheritance diagram for os::posix::block_device_impl:

Public Types

using blknum_t = block_device::blknum_t
 

Public Member Functions

Constructors & Destructor
 block_device_impl (void)
 
virtual ~block_device_impl () override
 
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
 
virtual ssize_t do_read_block (void *buf, blknum_t blknum, std::size_t nblocks)=0
 
virtual ssize_t do_write_block (const void *buf, blknum_t blknum, std::size_t nblocks)=0
 
Public Member Functions
virtual bool do_is_opened (void) override
 
virtual int do_vopen (const char *path, int oflag, std::va_list args)=0
 
virtual int do_vioctl (int request, std::va_list args)=0
 
virtual void do_sync (void)=0
 
int open_count (void)
 
Public Member Functions
virtual void do_deallocate (void)
 
virtual bool do_is_connected (void)
 
virtual ssize_t do_writev (const struct 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)
 
virtual int do_close (void)=0
 
off_t offset (void)
 
void offset (off_t offset)
 

Friends

class block_device
 

Detailed Description

Definition at line 167 of file block-device.h.

Member Typedef Documentation

◆ blknum_t

Constructor & Destructor Documentation

◆ block_device_impl()

os::posix::block_device_impl::block_device_impl ( void  )

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

◆ ~block_device_impl()

os::posix::block_device_impl::~block_device_impl ( )
overridevirtual

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

Member Function Documentation

◆ do_close()

virtual int os::posix::io_impl::do_close ( void  )
pure virtualinherited

◆ do_deallocate()

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

Definition at line 488 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 494 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 224 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 
)
overridevirtual

Implements os::posix::io_impl.

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

◆ do_read()

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

Implements os::posix::io_impl.

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

◆ do_read_block()

virtual ssize_t os::posix::block_device_impl::do_read_block ( void *  buf,
blknum_t  blknum,
std::size_t  nblocks 
)
pure virtual

◆ do_sync()

virtual void os::posix::device_impl::do_sync ( void  )
pure virtualinherited

◆ 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()

virtual int os::posix::device_impl::do_vioctl ( int  request,
std::va_list  args 
)
pure virtualinherited

◆ do_vopen()

virtual int os::posix::device_impl::do_vopen ( const char *  path,
int  oflag,
std::va_list  args 
)
pure virtualinherited

◆ do_write()

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

Implements os::posix::io_impl.

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

◆ do_write_block()

virtual ssize_t os::posix::block_device_impl::do_write_block ( const void *  buf,
blknum_t  blknum,
std::size_t  nblocks 
)
pure virtual

◆ do_writev()

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

Definition at line 500 of file io.cpp.

◆ offset() [1/2]

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

Definition at line 467 of file io.h.

◆ offset() [2/2]

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

Definition at line 461 of file io.h.

◆ open_count()

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

Definition at line 330 of file device.h.

Friends And Related Symbol Documentation

◆ block_device

friend class block_device
friend

Definition at line 171 of file block-device.h.


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