LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2014, 08:20 AM   #1
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
Post dev_set_drvdata registration with 2 or multiple device with same driver


Dear All ,

Is there any way to register two device with dev_set_drvdata .
i wanted to register 2 device with same driver .
but currently when i am using it last driver data is getting over written .
so whenever i am doing dev_get_drvdata its picking last entry

can we get drv data for our choice after setting two or multiple device ?

Regards
tini981
 
Old 09-21-2014, 05:49 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 41
I'd write a script to save the data before it's gets lost..
 
Old 09-22-2014, 03:51 AM   #3
tini981
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
The Thing is we can maintain multiple device structure , while calling drv set data , but How to retrive based on our choice in get drv data . is there any other Linux API which we can use ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
device registration Vermidias Programming 0 01-05-2011 04:21 AM
nvidiafb frame buffer device registration (not-X11) Bockeman Linux - Hardware 0 07-06-2009 04:26 AM
Linux - 2.6 - Device Driver - using multiple C files pintu_agarwal Linux - Newbie 0 07-07-2008 03:25 AM
Multiple Device driver from single device driver???? rickhg12hs Linux - Kernel 3 05-25-2008 01:11 AM
uclinux custom device driver not loading, possibly multiple problems godzilla Linux - Kernel 12 09-10-2007 07:39 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration