Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
virt2phys.h
Go to the documentation of this file.
1
#ifndef PARROT_VIRT2PHYS
2
#define PARROT_VIRT2PHYS
3
4
#include <sys/types.h>
5
#include <unistd.h>
6
7
struct
physmem
{
8
unsigned
long
paddr
;
9
size_t
size
;
10
};
11
12
/* check_contiguity - Get information on physical memory associated with virtual
13
* address.
14
*
15
* @param[in] vaddr : the virtual address in the context of process pid
16
* @param[in] pid : a valid pid
17
* @param[in] *pmem : Valid only if fonction returns 0.
18
* pmem->paddr contains physical address of the first byte.
19
* pmem->size contains the number of contiguous bytes checked. If size is not zero, buffer is contiguous if pmem->size >= size.
20
* @param[in] size : if size>0 contiguity is checked as far as possible.
21
* : if size=0, check contiguity until at least size bytes had been checked as contiguous.
22
* @return 0 if vaddr can be converted in physical address and -1 otherwise.
23
*/
24
int
check_contiguity
(
unsigned
long
vaddr, pid_t pid,
struct
physmem
*pmem,
size_t
size);
25
26
#endif // PARROT_VIRT2PHYS
physmem::paddr
unsigned long paddr
Definition:
virt2phys.h:8
physmem
Definition:
virt2phys.h:7
check_contiguity
int check_contiguity(unsigned long vaddr, pid_t pid, struct physmem *pmem, size_t size)
Definition:
virt2phys.c:111
physmem::size
size_t size
Definition:
virt2phys.h:9
sw
airborne
modules
computer_vision
lib
v4l
virt2phys.h
Generated on Wed Feb 10 2021 04:34:05 for Paparazzi UAS by
1.8.8