Re: define struct workqueue_struct in C file

2018-05-25 Thread Al Viro
On Thu, May 24, 2018 at 11:10:14PM +0800, Liu, Changcheng wrote: > Hi all, > I have one confusion about workqueue_struct: > 1) Why struct workqueue_struct is defined in C file instead of > header file? To prevent all other code poking in its guts? > I'm trying to print

Re: define struct workqueue_struct in C file

2018-05-25 Thread Al Viro
On Thu, May 24, 2018 at 11:10:14PM +0800, Liu, Changcheng wrote: > Hi all, > I have one confusion about workqueue_struct: > 1) Why struct workqueue_struct is defined in C file instead of > header file? To prevent all other code poking in its guts? > I'm trying to print

define struct workqueue_struct in C file

2018-05-24 Thread Liu, Changcheng
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

define struct workqueue_struct in C file

2018-05-24 Thread Liu, Changcheng
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