Using @DslMarker on functions

I’ve been looking around, and all I’ve found is information on how to use annotations annotated with @DslMarker on classes, but they seem to work fine on functions. Are they meant to be used on the actual top-level functions used to begin the DSL? Or are they only meant to be used on classes for building elements within the DSL?