All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Liu, Changcheng" <changcheng.liu@intel.com>
To: jiangshanlai@gmail.com, tj@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: define struct workqueue_struct in C file
Date: Thu, 24 May 2018 23:10:14 +0800	[thread overview]
Message-ID: <20180524151013.GA175207@sofia> (raw)

Hi all,
	I have one confusion about workqueue_struct:
	1) Why struct workqueue_struct is defined in C file instead of
	header file?
	   I'm trying to print "workqueue_struct:name" field in one external
	   build module. "workqueue_struct:name" can't be accessed directly.

	2) struct work_struct is defined in "workqueue.h", could struct
	workqueue_struct also be defined in it?

--Thanks
Changcheng

             reply	other threads:[~2018-05-24 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-24 15:10 Liu, Changcheng [this message]
2018-05-26  0:30 ` define struct workqueue_struct in C file Al Viro

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=20180524151013.GA175207@sofia \
    --to=changcheng.liu@intel.com \
    --cc=jiangshanlai@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.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.