def mod_watch(name, sfun, **kwargs):
    '''
    The kernerpkg watcher, called to invoke the watch command.
    When called, execute a kernelpkg state based on a watch or listen call.

    .. note::
        This state exists to support special handling of the ``watch``
        :ref:`requisite <requisites>`. It should not be called directly.

        Parameters for this function should be set by the state being triggered.
    '''
    if sfun in ('latest_active', 'latest_wait'):
        return latest_active(name, **kwargs)
    else:
        return {'name': name, 'changes': {},
                'comment': 'kernelpkg.{0} does not work with the watch '
                           'requisite.'.format(sfun),
                'result': False}
The kernerpkg watcher, called to invoke the watch command.
    When called, execute a kernelpkg state based on a watch or listen call.

    .. note::
        This state exists to support special handling of the ``watch``
        :ref:`requisite <requisites>`. It should not be called directly.

        Parameters for this function should be set by the state being triggered.