1 | /* |
1 | /* |
2 | * libeio API header |
2 | * libeio API header |
3 | * |
3 | * |
4 | * Copyright (c) 2007,2008,2009 Marc Alexander Lehmann <libeio@schmorp.de> |
4 | * Copyright (c) 2007,2008,2009,2010 Marc Alexander Lehmann <libeio@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
98 | int nameofs; /* offset of null-terminated name string in (char *)req->ptr2 */ |
98 | int nameofs; /* offset of null-terminated name string in (char *)req->ptr2 */ |
99 | unsigned short namelen; /* size of filename without trailing 0 */ |
99 | unsigned short namelen; /* size of filename without trailing 0 */ |
100 | unsigned char type; /* one of EIO_DT_* */ |
100 | unsigned char type; /* one of EIO_DT_* */ |
101 | signed char score; /* internal use */ |
101 | signed char score; /* internal use */ |
102 | ino_t inode; /* the inode number, if available, otherwise unspecified */ |
102 | ino_t inode; /* the inode number, if available, otherwise unspecified */ |
|
|
103 | }; |
|
|
104 | |
|
|
105 | /* eio_msync flags */ |
|
|
106 | enum { |
|
|
107 | EIO_MS_ASYNC = 1, |
|
|
108 | EIO_MS_INVALIDATE = 2, |
|
|
109 | EIO_MS_SYNC = 4 |
|
|
110 | }; |
|
|
111 | |
|
|
112 | /* eio_mtouch flags */ |
|
|
113 | |
|
|
114 | enum { |
|
|
115 | EIO_MT_MODIFY = 1 |
103 | }; |
116 | }; |
104 | |
117 | |
105 | /* eio_sync_file_range flags */ |
118 | /* eio_sync_file_range flags */ |
106 | |
119 | |
107 | enum { |
120 | enum { |