RE: CMWQ urgent questions

From: Deepa Raj
Date: Mon May 26 2014 - 00:53:29 EST



Hi Tejun,

You are the implementor of CMWQ workqueues and I am working on device drivers. In this new workqueues, worker threads are created like:

kworker/u4:0 
kworker/0:0 

OK, with the help of ftrace, we are able to know on which cpu id, it is created. Can we read not from u4:0 or 0:0, the cpuid?

As per code, for high priority work queues H is appended.

The questions are as follows:

1) what does u4:0 means, does it means this is created from user side?, does it give cpu id on which it is working? I am going to understand the meaning of u4:0. I guess you the best person to explain it.

2) Suppose workqueues are created from device driver init functions, When the user space process (through the ioctl calls) schedule the work, can we know which process scheduled the work on workqueues. 

Waiting for your help and appreciate your help on this.

With Regards,
D.Raj --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/