|
Last change
on this file since 692 was 679, checked in by David Azarewicz, 5 years ago |
|
Merge changes from Paul's uniaud32next branch.
|
|
File size:
667 bytes
|
| Line | |
|---|
| 1 | #ifndef _LINUX_ASYNC_H
|
|---|
| 2 | #define _LINUX_ASYNC_H
|
|---|
| 3 |
|
|---|
| 4 | #include <linux/list.h>
|
|---|
| 5 | #include <linux/types.h>
|
|---|
| 6 | typedef u64 async_cookie_t;
|
|---|
| 7 | typedef void (*async_func_t) (void *data, async_cookie_t cookie);
|
|---|
| 8 | struct async_domain {
|
|---|
| 9 | struct list_head pending;
|
|---|
| 10 | unsigned registered:1;
|
|---|
| 11 | };
|
|---|
| 12 |
|
|---|
| 13 | /*
|
|---|
| 14 | * domain is free to go out of scope as soon as all pending work is
|
|---|
| 15 | * complete, this domain does not participate in async_synchronize_full
|
|---|
| 16 | */
|
|---|
| 17 | #define ASYNC_DOMAIN_EXCLUSIVE(_name) \
|
|---|
| 18 | struct async_domain _name = { \
|
|---|
| 19 | .registered = 0 }
|
|---|
| 20 |
|
|---|
| 21 | #define async_synchronize_full_domain(domain)
|
|---|
| 22 |
|
|---|
| 23 | #define async_schedule_domain(func, data, domain)
|
|---|
| 24 | #endif /* _LINUX_ASYNC_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.