Linux Kernel
3.7.1
|
#include <linux/types.h>
Go to the source code of this file.
Enumerations | |
enum | string_size_units { STRING_UNITS_10, STRING_UNITS_2 } |
Functions | |
int | string_get_size (u64 size, enum string_size_units units, char *buf, int len) |
enum string_size_units |
Definition at line 8 of file string_helpers.h.
string_get_size - get the size in the specified units : The size to be converted : units to use (powers of 1000 or 1024) : buffer to format to : length of buffer
This function returns a string formatted to 3 significant figures giving the size in the required units. Returns 0 on success or error on failure. is always zero terminated.
Definition at line 23 of file string_helpers.c.