LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 04-25-2012, 04:09 AM   #1
Bhosdina
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
DEVICE_ATTR does not printing dmesg


Hi,
I am implementing DEVICE_ATTR for my driver. I have kept printk in show and store funtcion.In show and store function I am not able to see my printk in it using dmesg..but sysfs is working fine. I can able to change value in file using sysfs created via DEVICE_ATTR. Problem is my store and show function is not printing any messages in dmesg.
Can you please help me..I am stuck here from last 3 days...
 
Old 04-25-2012, 04:10 AM   #2
Bhosdina
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Please help meee...
Quote:
Originally Posted by Bhosdina View Post
Hi,
I am implementing DEVICE_ATTR for my driver. I have kept printk in show and store funtcion.In show and store function I am not able to see my printk in it using dmesg..but sysfs is working fine. I can able to change value in file using sysfs created via DEVICE_ATTR. Problem is my store and show function is not printing any messages in dmesg.
Can you please help me..I am stuck here from last 3 days...
 
Old 04-26-2012, 04:40 AM   #3
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
I could not get what are your show and store functions, could you please show the code.
 
Old 04-26-2012, 05:39 AM   #4
Bhosdina
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bsat View Post
I could not get what are your show and store functions, could you please show the code.
Hi,
I am implementing charger driver for which I want to do sysfs for some attributes charge_current_limit. I am using DEVICE_ATTR for this. My file is located under /hardware/intel/linux2.6/drivers/power....I also have power_supply_sysfs.c which is Sysfs interface for the universal power supply monitor class under /hardware/intel/linux2.6/drivers/power. I want to do sysfs for charge_current_limit? How to do?
 
  


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
[SOLVED] printing problems cups okular printing jobs debian squeeze epson stylus sx 410 Foxbat1155 Linux - Newbie 4 02-22-2012 03:49 PM
Difference between ouput of dmesg and content of /var/log/dmesg Sayan Acharjee Linux - General 1 09-21-2011 11:42 AM
dmesg vs /var/log/dmesg drManhattan Linux - Newbie 2 08-07-2011 06:28 AM
dmesg (command) and /var/log/dmesg are different? Oxagast Linux - Software 2 07-10-2006 06:50 AM
/bin/dmesg > /dmesg-boot not Working in Knoppix 3.4 suguru Debian 2 07-04-2004 06:21 PM


All times are GMT -5. The time now is 02:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration