These two patches contain some example code how to use the nested compat attribute in sch_prio.