---
name: "LIBMTP_raw_device_struct"
section: "3"
platform: "linux"
package: "libmtp"
version: "1.1.23-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/LIBMTP_raw_device_struct"
---

# LIBMTP\_raw\_device\_struct(3)

## NAME

LIBMTP\_raw\_device\_struct

## SYNOPSIS

\#include \<libmtp.h\>

### Data Fields

**LIBMTP\_device\_entry\_t** **device\_entry**\
 uint32\_t **bus\_location**\
 uint8\_t **devnum**\

## Detailed Description

A data structure to hold a raw MTP device connected to the bus.

## Field Documentation

### uint32\_t LIBMTP\_raw\_device\_struct::bus\_location

Location of the bus, if device available

Referenced by **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Open\_Raw\_Device\_Uncached()**.

### LIBMTP\_device\_entry\_t LIBMTP\_raw\_device\_struct::device\_entry

The device entry for this raw device

Referenced by **configure\_usb\_device()**, **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Open\_Raw\_Device\_Uncached()**.

### uint8\_t LIBMTP\_raw\_device\_struct::devnum

Device number on the bus, if device available

Referenced by **dump\_usbinfo()**, **LIBMTP\_Detect\_Raw\_Devices()**, **LIBMTP\_Detect\_Raw\_Devices()**, and **LIBMTP\_Open\_Raw\_Device\_Uncached()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
