what's the value of "struct execute_work" in workqueue.h?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i'm curious about the value of this declaration in
include/linux/workqueue.h:

struct execute_work {
        struct work_struct work;
};

  what is the point of declaring a structure whose sole content is
just another structure?  it's not as if there's any usage which
requires that structure to be distinct from a normal work_struct, and
it's certainly not used a whole lot either:

$ grep -rw execute_work *
include/scsi/scsi_device.h:     struct execute_work     ew; /* used to get process context on put */
include/scsi/scsi_device.h:     struct execute_work     ew;
include/linux/workqueue.h:struct execute_work {
include/linux/workqueue.h:int execute_in_process_context(work_func_t fn, struct execute_work *);
kernel/workqueue.c:int execute_in_process_context(work_func_t fn, struct execute_work *ew)
$

  so what's the point to this structure?  thanks.

rday


-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux