---
name: "mtp_LIBMTP_raw_device_struct"
section: "3"
platform: "linux"
package: "libmtp-doc"
version: "1.1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtp_LIBMTP_raw_device_struct"
---

# mtp\_LIBMTP\_raw\_device\_struct(3)

## NAME

libmtp -

## 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.

**Examples** **detect.c**, **files.c**, **folders.c**, and **tracks.c**.

## 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.
