Line 23:
Line 23:
*1)bind(<peer name>);
*1)bind(<peer name>);
*2)set_fds_event(<socket pid>);
*2)set_fds_event(<socket pid>);
+
+
= Dependencies =
+
# Slave TTY can only be created after respective master peer are restored. But now we wait even more -- till all masters are restored.
+
# CTTY must be created after all other TTYs are restored. For all tty dependencies see tty_deps_restored() for the details.
+
# Epoll can be created in any time, but it can add a fd in its polling list, after the corresponding fle is completely restored. The only exception is a epoll listening other epoll. In this case we wait till listened fle is just created (not restored). See epoll_not_ready_tfd().
+
# Unix socket must wait a peer before connect to it. See peer_is_not_prepared() for the details.
+
# TCP sockets have a counter on address use.
+
# Implementing a new relationships between fle stages, check, that you are not introducing a circular dependence (with existing).
= Notes =
= Notes =
# Pipes (and fifos), unix sockets and TTYs generate two fds in their ->open callbacls, the 2nd one can conflict with some other fd the task restores and (!) this "2nd one" may require sending to some other task.
# Pipes (and fifos), unix sockets and TTYs generate two fds in their ->open callbacls, the 2nd one can conflict with some other fd the task restores and (!) this "2nd one" may require sending to some other task.
−
# Some actions can only be done only after file is created, served out and moved to proper position. E.g. epoll configuration and scheduling TCP repair off.
−
# Slave TTYs can only be restored after respective master peers.
−
# CTTYs should be __created__ after all other TTYs are created, configured and served out.
[[Category:Under the hood]]
[[Category:Under the hood]]
[[Category:Files]]
[[Category:Files]]