Re: [PATCH 1/3] Add a generic API for _OSC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shaohua Li пишет:
> On Wed, Oct 28, 2009 at 04:02:12PM +0800, Alexey Starikovskiy wrote:
>   
>> Shaohua Li пишет:
>>     
>>> On Tue, Oct 27, 2009 at 11:52:45PM +0800, Alexey Starikovskiy wrote:
>>>   
>>>       
>>>> Hi Shaohua,
>>>>
>>>> Could you also make it take a spec string as argument, not a prepared
>>>> byte buffer?
>>>>     
>>>>         
>>> Hi,
>>> did you mean take the uuid string as an argument of the API? We can
>>> add a function to convert a uuid string to binary, but I didn't see
>>> any benefit to take the string as argument.
>>>
>>> Thanks,
>>> Shaohua
>>>   
>>>       
>> Hi,
>> Well, right now you are programming in machine codes. If you make
>> mistake, no one will notice, even yourself.
>> Programming languages were invented to make programs look more readable
>> by humans, so that they can see mistakes more easily.
>> For the same reason ACPI specification declares UUIDs as strings, while
>> having them in AML as byte arrays.
>> Function to convert UUID to byte array already exists, you just need to
>> use it...
>>     
> frankly even you use UUID string, it's easy to make mistakes. The string
> is too long.
Copy-paste is already invented too :)
> BTW, which function can convert UUID to byte array?
>   
aslopcodes.c:633 OpcDoUuId().

Regards,
Alex.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux