kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: venkatram867@gmail.com (Ram Tummala)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Doubt regarding PageLocked in Linux kernel source
Date: Thu, 19 Apr 2012 00:37:03 -0700	[thread overview]
Message-ID: <-3263537849620940222@unknownmsgid> (raw)
In-Reply-To: <E351E450E8B9F54684A699D42DC5ADF21F695168@MPBAGVEX02.corp.mphasis.com>

On Apr 19, 2012, at 12:15 AM, Shashidhara Shamaiah <
Shashidhara.Shamaiah@mphasis.com> wrote:

  Hi,



I was looking at the source file fs/jbd/transaction.c . In the function
journal_invalidatepage the code calls the macro

PageLocked . I need to look at its implementation. I could locate where the
definition of PageLocked. Its not a function  as its absent in the
System.map file.  I have searched in internet. It was defined as a macro in
older kernels. But I could not get its definition in the recent kernels.
Please point me to the right direction.


Yes, it's not a function, it's a macro. Page flags are cleverly implemented
in the Linux kernel as macros. You wont be able to cscope into it. See
http://lxr.linux.no/linux+v3.3.2/include/linux/page-flags.h for
implementation details.

Venkatram Tummala



Regards

Shashidhara

Information transmitted by this e-mail is proprietary to MphasiS, its
associated companies and/ or its customers and is intended
for use only by the individual or entity to which it is addressed, and may
contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded
to you without proper authority, you are notified that any use or
dissemination of this information in any manner is strictly
prohibited. In such cases, please notify us immediately at
mailmaster at mphasis.com and delete this mail from your records.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120419/bcc98e35/attachment.html 

      reply	other threads:[~2012-04-19  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19  6:58 Doubt regarding PageLocked in Linux kernel source Shashidhara Shamaiah
2012-04-19  7:37 ` Ram Tummala [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=-3263537849620940222@unknownmsgid \
    --to=venkatram867@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).