b78e0e152a
Use checkpatch.pl to fix the majority of errors. Some that remain and will be excluded: Use of typedefs/externs/volatile/sscanf Lines over 80 characters Remaining errors are due to misunderstanding the * symbol with typedefs Also use this opportunity to spell manageable properly Change-Id: I0b335e9cb3e1eea38bee27eaa1f582b2c9b09b38
17 linhas
301 B
C
17 linhas
301 B
C
#include <errno.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
#include "libhsakmt.h"
|
|
|
|
/* Call ioctl, restarting if it is interrupted */
|
|
int kmtIoctl(int fd, unsigned long request, void *arg)
|
|
{
|
|
int ret;
|
|
|
|
do {
|
|
ret = ioctl(fd, request, arg);
|
|
} while (ret == -1 && (errno == EINTR || errno == EAGAIN));
|
|
|
|
return ret;
|
|
}
|