• Logo
    Mir
  • canonical.com/mir
  • More resources
    • Discourse
    • Mattermost
    • Matrix
    • GitHub
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Mir v2.26.0 documentation
Mir v2.26.0 documentation
  • Tutorials for building Wayland compositors with Mir
    • Getting started with Mir
    • Write your first Wayland compositor
  • Mir how-to guides
    • How to handle keyboard input
    • How to integrate a custom Wayland protocol
    • How to specify startup applications
    • Specifying CSD/SSD preference in Mir compositors
  • Mir explanation guides
    • Accessibility methods in Mir
    • Mir libraries for compositor authors
    • Using Mir to build a desktop environment
    • Graphics driver quirks in Mir
    • Energy efficiency
    • Performance considerations for Mir-based compositors
    • Mir platform support: graphics and input backends
    • Security considerations for Mir-based compositors
    • Window positioning under Wayland
    • XDG portal support in Mir
  • Mir reference
    • Mir C++ API documentation
    • Compositors built with Mir
    • Introducing the MirAL API
    • Linux kernel requirements for Mir
  • Configuring Mir
    • Configuring Mir: how-to guides
      • How to calibrate a touchscreen device
      • How to enable remote desktop
      • How to enable screencasting
      • How to use on-screen keyboards
    • Configuring Mir: explanations
      • Mir component reports
    • Mir configuration reference
      • Mir configuration options
  • Contributing to Mir
    • Contributing to Mir: how-to guides
      • How to debug Mir snaps
      • How to enable GPU support for snaps using gpu-2404
      • Getting involved in Mir
      • How to measure code coverage
      • How to update Wayland Explorer for Mir
      • How to release a new Mir version
      • How to test Mir for a release
      • How to update symbols map files
      • Using checkbox-mir to validate your snap graphical environment
    • Contributing to Mir: explanations
      • Mir architecture
      • Mir input platform APIs
      • Mir libraries and module architecture
    • Mir contributor reference
      • Mir continuous integration
      • Mir C++ style guide
      • A brief guide for versioning symbols in the Mir DSOs
  • Mir release notes
Back to top

Class ShmFile¶

  • Defined in File shm_file.h

Inheritance Relationships¶

Derived Type¶

  • public mir::AnonymousShmFile (Class AnonymousShmFile)

Class Documentation¶

class ShmFile¶

Subclassed by mir::AnonymousShmFile

Public Functions

virtual ~ShmFile() = default¶
virtual void *base_ptr() const = 0¶
virtual int fd() const = 0¶

Protected Functions

ShmFile() = default¶
ShmFile(ShmFile const&) = delete¶
ShmFile &operator=(ShmFile const&) = delete¶
Copyright © 2026, Canonical Ltd.
Manage your tracker settings
Contents
  • Class ShmFile
    • Inheritance Relationships
      • Derived Type
    • Class Documentation
      • mir::ShmFile
        • ~ShmFile()
        • base_ptr()
        • fd()
        • ShmFile()
        • ShmFile()
        • operator=()