Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:56:02+00:00 2026-06-10T15:56:02+00:00

Does the driver know any information about the application that called open? I’m using

  • 0

Does the driver know any information about the application that called open?

I’m using a driver to support 2 similar but different devices. I want to be able to specify which particular device to use when I call open in an application. I am using symlinks for each device linking it to the driver’s name so that I can call open("/dev/dev1"... or open("/dev/dev2"... instead of open("/dev/drivername"... and would like to be able to use this symlink name in the open function if that’s somehow possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:56:04+00:00Added an answer on June 10, 2026 at 3:56 pm

    No, this doesn’t work. The driver doesn’t get any information about the path used to open the node. Device nodes are specified by major/minor numbers and a character/block type, and that’s it. If you want your different “named” nodes to be distinguishable, presumably they should have different minor numbers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Zend_Db with the Pdo_Mysql driver. This query does not give any
Does anyone know of any JDBC interface or driver for Google BigQuery? Only Java
Does anyone know ways of partially or fully automating driver test installation? I am
Python-memcached is the official supported memcached driver for Django. Does it support Consistent hashing
Does anyone know of a free tool, similar to what is built into Visual
I know I'm reaching for straws here, but this one is a mystery... any
Does anyone know how to resize current browser window using Ruby? I have searched
Does anyone know of any way to make a datasource configuration change in WAS
I've never written drivers before but I'm starting an open-source project that involves creating
I need to develop a print driver to print from any application into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.