Lines Matching refs:device_name
77 def get_iosched_path(device_name, component):
78 return '/sys/block/%s/queue/%s' % (device_name, component)
788 def get_io_scheduler_list(self, device_name):
789 names = open(self.__sched_path(device_name)).read()
793 def get_io_scheduler(self, device_name):
795 open(self.__sched_path(device_name)).read())[1]
798 def set_io_scheduler(self, device_name, name):
799 if name not in self.get_io_scheduler_list(device_name):
801 f = open(self.__sched_path(device_name), 'w')
806 def __sched_path(self, device_name):
807 return '/sys/block/%s/queue/scheduler' % device_name