PX4 Firmware
PX4 Autopilot Software http://px4.io
test_mount.c File Reference

Device mount / unmount stress test. More...

#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/tasks.h>
#include <sys/stat.h>
#include <dirent.h>
#include <stdio.h>
#include <stddef.h>
#include <systemlib/err.h>
#include <perf/perf_counter.h>
#include <string.h>
#include <drivers/drv_hrt.h>
#include "tests_main.h"
Include dependency graph for test_mount.c:

Go to the source code of this file.

Functions

int test_mount (int argc, char *argv[])
 

Variables

const int fsync_tries = 1
 
const int abort_tries = 10
 

Detailed Description

Device mount / unmount stress test.

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch

Definition in file test_mount.c.

Function Documentation

◆ test_mount()

int test_mount ( int  argc,
char *  argv[] 
)

Definition at line 60 of file test_mount.c.

References __attribute__(), abort_tries, fd, fsync_tries, OK, px4_close(), px4_open(), read(), and write().

Here is the call graph for this function:

Variable Documentation

◆ abort_tries

const int abort_tries = 10

Definition at line 57 of file test_mount.c.

Referenced by test_mount().

◆ fsync_tries

const int fsync_tries = 1

Definition at line 56 of file test_mount.c.

Referenced by test_mount().