From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01470C43381 for ; Thu, 28 Mar 2019 00:23:38 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9341206B8 for ; Thu, 28 Mar 2019 00:23:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VoyyDwlW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9341206B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1h9IpD-0006Ok-Tz; Wed, 27 Mar 2019 20:23:19 -0400 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1h9IpC-0006Oe-7P for kernelnewbies@kernelnewbies.org; Wed, 27 Mar 2019 20:23:18 -0400 Received: by mail-io1-xd44.google.com with SMTP id d201so15723876iof.7 for ; Wed, 27 Mar 2019 17:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gEKQhENGqkqUZ5HqvIEgNlOAn9u+Q0k1VIEnOa0rhYo=; b=VoyyDwlWOXr7wTBBLas1RmP+cbZlI+e5e5quwUlsQCbmuKHKIqFdpEGxEh6U4RYEXL nzBMtKrbsedy01HWrZhpfJit3vSBzWnK2J1JAWXg/QNzXPI1U3q+hndN+KzAhGCkLtXU /UdJLxLldBu02cAL6vcOW+rCCXxen6QgFdAPtQUvuWoXfI4MPr733S3xfb/r+oghTXzl xuJNUo3CliM7Sn4pipwtaIDFuvRnk+UTUoxxzvf45ICBtyne+yHtBGwbfZB4bxBiLHxg paJlF2OMv0v7qBU6JmXDxbx3iF1p3r8K5gpsI+YJwonW85uiSssTUixcfafobd2HUga5 ABFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gEKQhENGqkqUZ5HqvIEgNlOAn9u+Q0k1VIEnOa0rhYo=; b=XzUnf7AA2qp03oCZ6peXFfsGXA0yHuNnnwiLkXfwAMA0NuY8f3ck8hPNpDSof4xEZP EYG+ZL4/7w8IK9II7DFNvyXqE1pCW/p2aTmgHV0UjgU4Umuuf09vgPg/TOMfl9R41wAw YriojUM222lzkozanwcgoi7NuCTGy/r7LlHGs814GHTWFDeS48Ihcz2OLVelsFGrT3/9 7exZygEU1AzvffXeTRAkwbjmy+AOAMUKmn/O3pEfiA5a+YBlpM3Kp7HA1RZ3QMaWWCE2 EvlJADBrvDLvB5VWAGPApxs5CYJg3o6rV5xNTC/+nf80qpzU6EInViuqAqIJvhx5DfAA 5u7g== X-Gm-Message-State: APjAAAWY/sZe0zeMDKvBsw/tqV+49JByux+o3ggW2NvYLZmUWBLB0BKk 95K8hdVU/fwjj2BWNHDUGuZ/h7yaoLBlF0ynAdjwcDCb X-Google-Smtp-Source: APXvYqwE7Gizczdh9h6PKeNHw8MyyzNxkh5X34DHSz5A43ku6YX+94qybtmnfHYzP/vsLGR/p/IfE54gYcsSh10fYic= X-Received: by 2002:a6b:c995:: with SMTP id z143mr26522945iof.74.1553732596848; Wed, 27 Mar 2019 17:23:16 -0700 (PDT) MIME-Version: 1.0 References: <20190327222615.GB5006@eros.localdomain> <20190328003458.GA1733@koro.localdomain> <20190327234935.GA11097@eros.localdomain> In-Reply-To: <20190327234935.GA11097@eros.localdomain> From: Igor Pylypiv Date: Wed, 27 Mar 2019 17:23:05 -0700 Message-ID: Subject: Re: Where is PageHead defined in v5.0? To: "Tobin C. Harding" Cc: Jesse Simpson , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, Mar 27, 2019 at 4:51 PM Tobin C. Harding wrote: > > On Wed, Mar 27, 2019 at 07:34:58PM -0500, Jesse Simpson wrote: > > Hi Tobin, > > > > I took a look on my system, and I wasn't able to find where PageHead is > > defined either. I used grep to search for it as well as vim with ctags. > > Maybe it's hidden away in some built-in.a or binary file. > > Cheers Jesse, confirmation that I've not gone mad - that's a win. > > I'll repost this to mm-linux tomorrow if no one on here knows. > > thanks, > Tobin. > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Hi Tobin and Jesse, Neither grep nor ctags are going to help you here :) PageHead is implicitly defined using macros __PAGEFLAG: __PAGEFLAG(Head, head, PF_ANY) CLEARPAGEFLAG(Head, head, PF_ANY) (https://elixir.bootlin.com/linux/v5.0.5/source/include/linux/page-flags.h#L517) __PAGEFLAG defines TESTPAGEFLAG: (https://elixir.bootlin.com/linux/v5.0.5/source/include/linux/page-flags.h#L248) and TESTPAGEFLAG defines PageHead: #define TESTPAGEFLAG(uname, lname, policy) \ static __always_inline int Page##uname(struct page *page) (https://elixir.bootlin.com/linux/v5.0.5/source/include/linux/page-flags.h#L215) See, it is simple :) Thanks, Igor _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies