USRP Hardware Driver and Device Manual  Version: 4.11.0.0-0-g0d7ed3b1
UHD and USRP Manual
platform.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010,2012 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <stdint.h>
11 #include <cstddef>
12 
13 namespace uhd {
14 
15 /* Returns the process ID of the current process */
16 int32_t get_process_id();
17 
18 /* Returns a unique identifier for the current machine */
19 uint32_t get_host_id();
20 
21 /* Get a unique identifier for the current machine and process */
22 uint32_t get_process_hash();
23 
24 /* Returns the system memory page size in bytes */
25 size_t get_page_size();
26 
27 } // namespace uhd
Definition: build_info.hpp:12
uint32_t get_process_hash()
size_t get_page_size()
uint32_t get_host_id()
int32_t get_process_id()