mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 01:54:28 +00:00
Current fdsets are ugly, limited (bitmask will exhaust in several months) and suffer from unknown problems with fdsets reuse :( With new approach (this set) the images management is simple. The basic function is open_image, which gives you an fd for an image. If you want to pre-open several images at once instead of calling open_image every single time, you can use the new fdsets. Images CR_FD_ descriptors should be grouped like _CR_FD_FOO_FROM, CR_FD_FOO_ITEM1, CR_FD_FOO_ITEM2, .. CR_FD_FOO_ITEMN, _CR_FD_FOO_TO, After this you can call cr_fd_open() specifying ranges -- _FROM and _TO macros, it will give you an cr_fdset object. Then the fdset_fd(set, type) will give you the descriptor of the open "set" group corresponding to the "type" type. 3 groups are introduced in this set -- tasks, ns and global. That's it. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> |
||
|---|---|---|
| .. | ||
| atomic.h | ||
| bitops.h | ||
| compiler.h | ||
| crtools.h | ||
| file-ids.h | ||
| files.h | ||
| image.h | ||
| inet_diag.h | ||
| ipc_ns.h | ||
| libnetlink.h | ||
| list.h | ||
| lock.h | ||
| log.h | ||
| namespaces.h | ||
| parasite-syscall.h | ||
| parasite.h | ||
| proc_parse.h | ||
| processor-flags.h | ||
| ptrace.h | ||
| rbtree.h | ||
| restorer-log.h | ||
| restorer.h | ||
| sockets.h | ||
| syscall-codes.h | ||
| syscall.h | ||
| sysctl.h | ||
| types.h | ||
| unix_diag.h | ||
| util-net.h | ||
| util.h | ||
| uts_ns.h | ||