All of lore.kernel.org
 help / color / mirror / Atom feed
From: lovelylich@gmail.com (LovelyLich)
To: kernelnewbies@lists.kernelnewbies.org
Subject: export atomic64_t into /proc/sys/
Date: Tue, 16 Aug 2011 22:44:42 +0800	[thread overview]
Message-ID: <000301cc5c23$0ce61dc0$26b25940$@gmail.com> (raw)

Hello everyone,

         In my module, there is an atomic64_t counter for something , such
as packets received by Ethernet card.

         What I want to do is to export this atomic64_t number into
/proc/sys/net/ipv4/. The question is atomic64_t 

is an 64-bit long integer which is not support by kernel's default
proc_handlers like proc_dointvec(), proc_dointvec_minmax() and so on.

         So, Do I have to implement one proc_handler to handle this 64-bit
integer?

         Or you have some better ideas?

 

         Any reply will be appreciated and Thanks in advanced.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110816/ceb05372/attachment.html 

                 reply	other threads:[~2011-08-16 14:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000301cc5c23$0ce61dc0$26b25940$@gmail.com' \
    --to=lovelylich@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.