Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. How to access device context data?

How to access device context data?

Scheduled Pinned Locked Moved Hardware & Devices
questiontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sinosoidal
    wrote on last edited by
    #1

    Hi, I'm developing a kernel mode driver to handle a USB device. The device is always sending packets of data. That data, after 16 packets becomes 1 entire frame. That frame will then be delivered for a next phase processing. This frame is kept on the device context structure. However, I also would like to retrieve that data from the user space. I want to create an application to visualize that frame. The question is... what are the mechanisms to communicate from the kernel side to the user side? How can I access device context in order to get this piece of data from the kernel side in the user side? I hope to be clear enough, Thanks, With my best regards, Nuno

    N 1 Reply Last reply
    0
    • S sinosoidal

      Hi, I'm developing a kernel mode driver to handle a USB device. The device is always sending packets of data. That data, after 16 packets becomes 1 entire frame. That frame will then be delivered for a next phase processing. This frame is kept on the device context structure. However, I also would like to retrieve that data from the user space. I want to create an application to visualize that frame. The question is... what are the mechanisms to communicate from the kernel side to the user side? How can I access device context in order to get this piece of data from the kernel side in the user side? I hope to be clear enough, Thanks, With my best regards, Nuno

      N Offline
      N Offline
      nastytoe
      wrote on last edited by
      #2

      Thanks for clearing this up for me. I never understood how to access the data like this. I appreciate it!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups