From: Charles L. <cl...@gh...> - 2004-09-15 17:10:46
|
fago said: > >> You can always run tpctl under strace and see if it is trying to open >> other device nodes. > > so i tried strace > > stat64("/dev/thinkpad/thinkpad", 0xbffffb3c) =3D -1 ENOTDIR (No= t a > directory) > stat64("/dev/thinkpad", {st_mode=3DS_IFCHR|0660, > st_rdev=3Dmakedev(10, 170), ...}) =3D 0 > open("/dev/thinkpad", O_RDONLY) =3D 3 > > tpctl is finding the correct device. > the next thing concerning a device: > > fstat64(1, {st_mode=3DS_IFCHR|0600, st_rdev=3Dmakedev(136, 1), ...}) =3D= 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) =3D 0x40018000 > write(1, "tpctl: SMAPI BIOS error 0x86 (\"f"..., 71) =3D 71 > > > so is it looking for a device 136,1 or does it not need a device? No, (136,1) is the result of the fstat call (fstat fills in the structure= , but strace prints it like it was passed in). That's probably not relevant, though, because file descriptor 1 is usuall= y standard output. (And the mmap2 is just part of the way glibc implements malloc.) --=20 Charles Lepple cl...@gh... |