From: gmate.amit@gmail.com (Kumar amit mehta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Where are these buffer_xxx macros/fucntion defined?
Date: Mon, 8 Jul 2013 23:12:55 -0400 [thread overview]
Message-ID: <20130709031255.GB2951@gmail.com> (raw)
In-Reply-To: <1373358102.34107.YahooMailNeo@web122305.mail.ne1.yahoo.com>
On Tue, Jul 09, 2013 at 01:21:42AM -0700, Anand Moon wrote:
> Hi Kumar Amit,
> ?
> These function are define in
> ?
> ?
> http://lxr.linux.no/linux+v3.10/include/linux/buffer_head.h
> ?
> ?
> The ## (double number sign) operator concatenates two tokens in a macro invocation (text and/or arguments) given in a macro definition
> ?
> ?
> /*
> ?* Emit the buffer bitops functions.?? Note that there are also functions
> ?* of the form "mark_buffer_foo()".? These are higher-level functions which
> ?* do something in addition to setting a b_state bit.
> ?*/
> BUFFER_FNS(Uptodate, uptodate)
> BUFFER_FNS(Dirty, dirty)
> TAS_BUFFER_FNS(Dirty, dirty)
> BUFFER_FNS(Lock, locked)
> BUFFER_FNS(Req, req)
> TAS_BUFFER_FNS(Req, req)
> BUFFER_FNS(Mapped, mapped)
> BUFFER_FNS(New, new)
> BUFFER_FNS(Async_Read, async_read)
> BUFFER_FNS(Async_Write, async_write)
> BUFFER_FNS(Delay, delay)
> BUFFER_FNS(Boundary, boundary)
> BUFFER_FNS(Write_EIO, write_io_error)
> BUFFER_FNS(Unwritten, unwritten)
> BUFFER_FNS(Meta, meta)
> BUFFER_FNS(Prio, prio)
>
> These function get expanded before we compile the kernel.
Thank you Anand.
prev parent reply other threads:[~2013-07-09 3:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 2:21 Where are these buffer_xxx macros/fucntion defined? Kumar amit mehta
2013-07-09 8:21 ` Anand Moon
2013-07-09 3:12 ` Kumar amit mehta [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=20130709031255.GB2951@gmail.com \
--to=gmate.amit@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.