Lock a partition
#include <sys/dcmd_f3s.h> #define DCMD_F3S_LOCK __DIOT(_DCMD_F3S, F3S_LOCK, f3s_unitlock_t)
| 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 | 
This command locks a partition.
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;
None.