kernel flow diagram