소스 검색

[PATCH 8_9] Add block_write hook to block_dev_desc_t

Preparation for future patches which support block device writing

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Grant Likely 18 년 전
부모
커밋
53758fa20e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      include/part.h

+ 4 - 0
include/part.h

@@ -45,6 +45,10 @@ typedef struct block_dev_desc {
 				      unsigned long start,
 				      lbaint_t blkcnt,
 				      unsigned long *buffer);
+	unsigned long	(*block_write)(int dev,
+				       unsigned long start,
+				       lbaint_t blkcnt,
+				       const void *buffer);
 }block_dev_desc_t;
 
 /* Interface types: */