testapp.ssd_driver ================== .. py:module:: testapp.ssd_driver Classes ------- .. autoapisummary:: testapp.ssd_driver.SsdDriver Module Contents --------------- .. py:class:: SsdDriver SSD Driver 클래스는 SSD를 Python 레벨에서 접근하여 제어할 수 있도록 해주는 드라이버입니다. - subprocess를 사용하여 SSD에 접근하도록 설계되었습니다. .. py:attribute:: _instance :value: None .. py:method:: run_subprocess(command: str) :staticmethod: 주어진 명령어를 서브프로세스로 실행합니다. :param command: 실행할 명령어 :type command: str :returns: 서브프로세스 실행 결과 :rtype: subprocess.CompletedProcess :raises Exception: 명령어 실행 중 오류가 발생한 경우 .. py:method:: read(lba: str | int) -> str 주어진 LBA에서 데이터를 읽습니다. :param lba: 논리 블록 주소 :type lba: str | int :returns: 읽은 데이터 :rtype: str .. py:method:: write(lba: str | int, value: str | int) 주어진 LBA에 데이터를 씁니다. :param lba: 논리 블록 주소 :type lba: str | int :param value: 쓸 데이터 :type value: str | int .. py:method:: erase(lba: str | int, size: str | int) 주어진 LBA부터 주어진 크기만큼 데이터를 삭제합니다. :param lba: 논리 블록 주소 :type lba: str | int :param size: 삭제할 크기 :type size: str | int .. py:method:: flush()