kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: jeshkumar555@gmail.com (jeshwanth Kumar N K)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Sysfs class attribute problem
Date: Tue, 19 Jun 2012 15:14:57 +0530	[thread overview]
Message-ID: <4fe04a1b.4ad3440a.5cc5.432b@mx.google.com> (raw)

Hello all

I am new to sysfs interface ans I read about in mochel's documentation. And doing some experiements on it. Let's come to Tue problem, in my module I have a global variable type char* myglobal and it s static, I am putting that value in my one and only class attribute using show function. But for the same if I a user put some value in to the using echo or something, the attribute value is not changing. And one more thing s after I passed the value to the attribute my system not shutting down :( . Please help me how to read values.

// in store function I am doing this:
Myglobal = bus;

Sent from my HTC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120619/3ed6a6e0/attachment.html 

             reply	other threads:[~2012-06-19  9:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19  9:44 jeshwanth Kumar N K [this message]
2012-06-19 10:32 ` Sysfs class attribute problem anish singh
2012-06-20 18:02   ` Jeshwanth Kumar N K Jeshu
2012-06-21  3:34     ` anish singh
2012-06-21 18:28       ` Jeshwanth Kumar N K Jeshu
     [not found] <mailman.154.1340215374.2625.kernelnewbies@kernelnewbies.org>
2012-06-21  8:23 ` Pranay Kumar Srivastava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fe04a1b.4ad3440a.5cc5.432b@mx.google.com \
    --to=jeshkumar555@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).