DCMD_F3S_LOCK

Lock a partition

Synopsis:

#include <sys/dcmd_f3s.h>

#define DCMD_F3S_LOCK      __DIOT(_DCMD_F3S, F3S_LOCK, f3s_unitlock_t)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_F3S_LOCK
dev_data_ptr A pointer to a f3s_unitlock_t structure (see below)
n_bytes sizeof(f3s_unitlock_t)
dev_info_ptr NULL

Description:

This command locks a partition.

Input:

A f3s_unitlock_t structure:

typedef struct f3s_unitlock_s
{
  uint32_t status;  /* lock status */
  uint32_t offset;  /* offset of first unit expressed in bytes */
  uint32_t limit;   /* limit of last unit expressed in bytes */
}
f3s_unitlock_t;

Output:

None.

See also:

DCMD_F3S_UNLOCK, DCMD_F3S_UNLOCKALL

devctl() in the QNX Neutrino C Library Reference