PX4 Firmware
PX4 Autopilot Software http://px4.io
cdev_platform.hpp File Reference
#include <inttypes.h>
#include <string.h>
Include dependency graph for cdev_platform.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cdev::file_operations
 
struct  cdev::file_t
 

Namespaces

 cdev
 

Macros

#define ATOMIC_ENTER   lock()
 
#define ATOMIC_LEAVE   unlock()
 

Typedefs

using cdev::mode_t = uint32_t
 

Functions

__EXPORT int register_driver (const char *name, const cdev::px4_file_operations_t *fops, cdev::mode_t mode, void *data)
 
__EXPORT int unregister_driver (const char *path)
 

Macro Definition Documentation

◆ ATOMIC_ENTER

#define ATOMIC_ENTER   lock()

Definition at line 7 of file cdev_platform.hpp.

◆ ATOMIC_LEAVE

#define ATOMIC_LEAVE   unlock()

Definition at line 8 of file cdev_platform.hpp.

Function Documentation

◆ register_driver()

__EXPORT int register_driver ( const char *  name,
const cdev::px4_file_operations_t fops,
cdev::mode_t  mode,
void *  data 
)

Definition at line 100 of file cdev_platform.cpp.

References devmutex, and name.

Referenced by cdev::VFile::createFile(), cdev::file_t::file_t(), cdev::CDev::init(), MK::init(), PX4IO::init(), and cdev::CDev::register_class_devname().

Here is the caller graph for this function:

◆ unregister_driver()

__EXPORT int unregister_driver ( const char *  path)

Definition at line 127 of file cdev_platform.cpp.

References devmutex.

Referenced by cdev::file_t::file_t(), PX4IO::task_main(), cdev::CDev::unregister_class_devname(), cdev::CDev::unregister_driver_and_memory(), cdev::CDev::~CDev(), and MK::~MK().

Here is the caller graph for this function: