Picked this up from lkml - an article on IBM DeveloperWorks about inline assembly for x86 in linux.