tegra-fuse.c
/*
 * tegra_fuse_soctype_name
 *
 * Returns the name of the type of SoC/CPU chip
 */
tegra_fuse_soctype_name
Returns the name of the type of SoC/CPU chip
tegra_fuse_soctype_name Returns the name of the type of SoC / CPU chip
ssize_t
tegra_fuse_soctype_name (tegra_fusectx_t ctx, char *buf, size_t bufsiz)
{
	const char *name;
	size_t namelen;
	if (ctx == NULL) {
		errno = EINVAL;
		return -1;
	}
	name = fuseinfo[ctx->soc].chipname;
	namelen = strlen(name);
	if (bufsiz <= namelen) {
		errno = EINVAL;
		return -1;
	}
	memcpy(buf, name, namelen);
	buf[namelen] = '\0';
	return namelen;
}
ssize_t tegra_fuse_soctype_name ( tegra_fusectx_t ctx , char * buf , size_t bufsiz ) { const char * name ; size_t namelen ; if ( ctx == NULL ) { errno = EINVAL ; return -1 ; } name = fuseinfo [ ctx -> soc ] . chipname ; namelen = strlen ( name ) ; if ( bufsiz <= namelen ) { errno = EINVAL ; return -1 ; } memcpy ( buf , name , namelen ) ; buf [ namelen ] = ' \0 ' ; return namelen ; }
tegra_fuse_soctype_name
 Returns the name of the type of SoC/CPU chip
tegra_fuse_soctype_name Returns the name of the type of SoC / CPU chip