mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Scott Bronson <bronson@rinspin.com>
To: Roland Dreier <roland@topspin.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Getting the page size of currently running kernel
Date: Sat, 19 Feb 2005 20:39:38 -0800	[thread overview]
Message-ID: <200502192039.38390.bronson@rinspin.com> (raw)
In-Reply-To: <521xbbucys.fsf@topspin.com>

On Saturday 19 February 2005 19:28, Roland Dreier wrote:
> I'm not sure exactly how to call it from perl, but from C one can use
> sysconf(3) like:
>
>  page_size = sysconf(_SC_PAGESIZE);
>
> (one can also use getpagesize(2) to do exactly the same thing)

And I was going nuts looking all over /proc and /sys for it.  :)  _SC_PAGESIZE 
is a part of Perl's POSIX module.  Thanks Roland and Jan.

    - Scott

      reply	other threads:[~2005-02-20  4:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-20  3:01 Scott Bronson
2005-02-20  3:22 ` Jan Knutar
2005-02-20  3:28 ` Roland Dreier
2005-02-20  4:39   ` Scott Bronson [this message]

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=200502192039.38390.bronson@rinspin.com \
    --to=bronson@rinspin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@topspin.com \
    /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

all inboxes | Powered by JetHome®