USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-ge00f1f37
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 #ifndef INCLUDED_UHD_UTILS_PLATFORM_HPP
9 #define INCLUDED_UHD_UTILS_PLATFORM_HPP
10 
11 #include <stdint.h>
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 } //namespace uhd
25 
26 #endif /* INCLUDED_UHD_UTILS_PLATFORM_HPP */
Definition: build_info.hpp:14
int32_t get_process_id()
uint32_t get_process_hash()
uint32_t get_host_id()