提交 16e15565 编写于 作者: F Fabian Frederick 提交者: Jens Axboe

block/partitions/efi.c: kerneldoc fixing

Adding function documentation and fixing kerneldoc warnings
('field: description' uniformization).

Cc: Davidlohr Bueso <davidlohr@hp.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 dce14c23
...@@ -121,7 +121,7 @@ __setup("gpt", force_gpt_fn); ...@@ -121,7 +121,7 @@ __setup("gpt", force_gpt_fn);
/** /**
* efi_crc32() - EFI version of crc32 function * efi_crc32() - EFI version of crc32 function
* @buf: buffer to calculate crc32 of * @buf: buffer to calculate crc32 of
* @len - length of buf * @len: length of buf
* *
* Description: Returns EFI-style CRC32 value for @buf * Description: Returns EFI-style CRC32 value for @buf
* *
...@@ -240,10 +240,10 @@ static int is_pmbr_valid(legacy_mbr *mbr, sector_t total_sectors) ...@@ -240,10 +240,10 @@ static int is_pmbr_valid(legacy_mbr *mbr, sector_t total_sectors)
/** /**
* read_lba(): Read bytes from disk, starting at given LBA * read_lba(): Read bytes from disk, starting at given LBA
* @state * @state: disk parsed partitions
* @lba * @lba: the Logical Block Address of the partition table
* @buffer * @buffer: destination buffer
* @size_t * @count: bytes to read
* *
* Description: Reads @count bytes from @state->bdev into @buffer. * Description: Reads @count bytes from @state->bdev into @buffer.
* Returns number of bytes read on success, 0 on error. * Returns number of bytes read on success, 0 on error.
...@@ -277,8 +277,8 @@ static size_t read_lba(struct parsed_partitions *state, ...@@ -277,8 +277,8 @@ static size_t read_lba(struct parsed_partitions *state,
/** /**
* alloc_read_gpt_entries(): reads partition entries from disk * alloc_read_gpt_entries(): reads partition entries from disk
* @state * @state: disk parsed partitions
* @gpt - GPT header * @gpt: GPT header
* *
* Description: Returns ptes on success, NULL on error. * Description: Returns ptes on success, NULL on error.
* Allocates space for PTEs based on information found in @gpt. * Allocates space for PTEs based on information found in @gpt.
...@@ -312,8 +312,8 @@ static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state, ...@@ -312,8 +312,8 @@ static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state,
/** /**
* alloc_read_gpt_header(): Allocates GPT header, reads into it from disk * alloc_read_gpt_header(): Allocates GPT header, reads into it from disk
* @state * @state: disk parsed partitions
* @lba is the Logical Block Address of the partition table * @lba: the Logical Block Address of the partition table
* *
* Description: returns GPT header on success, NULL on error. Allocates * Description: returns GPT header on success, NULL on error. Allocates
* and fills a GPT header starting at @ from @state->bdev. * and fills a GPT header starting at @ from @state->bdev.
...@@ -340,10 +340,10 @@ static gpt_header *alloc_read_gpt_header(struct parsed_partitions *state, ...@@ -340,10 +340,10 @@ static gpt_header *alloc_read_gpt_header(struct parsed_partitions *state,
/** /**
* is_gpt_valid() - tests one GPT header and PTEs for validity * is_gpt_valid() - tests one GPT header and PTEs for validity
* @state * @state: disk parsed partitions
* @lba is the logical block address of the GPT header to test * @lba: logical block address of the GPT header to test
* @gpt is a GPT header ptr, filled on return. * @gpt: GPT header ptr, filled on return.
* @ptes is a PTEs ptr, filled on return. * @ptes: PTEs ptr, filled on return.
* *
* Description: returns 1 if valid, 0 on error. * Description: returns 1 if valid, 0 on error.
* If valid, returns pointers to newly allocated GPT header and PTEs. * If valid, returns pointers to newly allocated GPT header and PTEs.
...@@ -461,8 +461,8 @@ static int is_gpt_valid(struct parsed_partitions *state, u64 lba, ...@@ -461,8 +461,8 @@ static int is_gpt_valid(struct parsed_partitions *state, u64 lba,
/** /**
* is_pte_valid() - tests one PTE for validity * is_pte_valid() - tests one PTE for validity
* @pte is the pte to check * @pte:pte to check
* @lastlba is last lba of the disk * @lastlba: last lba of the disk
* *
* Description: returns 1 if valid, 0 on error. * Description: returns 1 if valid, 0 on error.
*/ */
...@@ -478,9 +478,10 @@ is_pte_valid(const gpt_entry *pte, const u64 lastlba) ...@@ -478,9 +478,10 @@ is_pte_valid(const gpt_entry *pte, const u64 lastlba)
/** /**
* compare_gpts() - Search disk for valid GPT headers and PTEs * compare_gpts() - Search disk for valid GPT headers and PTEs
* @pgpt is the primary GPT header * @pgpt: primary GPT header
* @agpt is the alternate GPT header * @agpt: alternate GPT header
* @lastlba is the last LBA number * @lastlba: last LBA number
*
* Description: Returns nothing. Sanity checks pgpt and agpt fields * Description: Returns nothing. Sanity checks pgpt and agpt fields
* and prints warnings on discrepancies. * and prints warnings on discrepancies.
* *
...@@ -572,9 +573,10 @@ compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba) ...@@ -572,9 +573,10 @@ compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba)
/** /**
* find_valid_gpt() - Search disk for valid GPT headers and PTEs * find_valid_gpt() - Search disk for valid GPT headers and PTEs
* @state * @state: disk parsed partitions
* @gpt is a GPT header ptr, filled on return. * @gpt: GPT header ptr, filled on return.
* @ptes is a PTEs ptr, filled on return. * @ptes: PTEs ptr, filled on return.
*
* Description: Returns 1 if valid, 0 on error. * Description: Returns 1 if valid, 0 on error.
* If valid, returns pointers to newly allocated GPT header and PTEs. * If valid, returns pointers to newly allocated GPT header and PTEs.
* Validity depends on PMBR being valid (or being overridden by the * Validity depends on PMBR being valid (or being overridden by the
...@@ -663,7 +665,7 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt, ...@@ -663,7 +665,7 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt,
/** /**
* efi_partition(struct parsed_partitions *state) * efi_partition(struct parsed_partitions *state)
* @state * @state: disk parsed partitions
* *
* Description: called from check.c, if the disk contains GPT * Description: called from check.c, if the disk contains GPT
* partitions, sets up partition entries in the kernel. * partitions, sets up partition entries in the kernel.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册