Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-16-2014, 07:20 AM   #1
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 ?

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

Rep: Reputation: 42
I'd write a script to save the data before it's gets lost..
Old 09-22-2014, 02:51 AM   #3
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 ?


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 03:21 AM
nvidiafb frame buffer device registration (not-X11) Bockeman Linux - Hardware 0 07-06-2009 03:26 AM
Linux - 2.6 - Device Driver - using multiple C files pintu_agarwal Linux - Newbie 0 07-07-2008 02:25 AM
Multiple Device driver from single device driver???? rickhg12hs Linux - Kernel 3 05-25-2008 12:11 AM
uclinux custom device driver not loading, possibly multiple problems godzilla Linux - Kernel 12 09-10-2007 06:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

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