New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Adaline Pollich


Marketplace > University of Kentucky > Electrical Engineering > EE 599 > TOPS IN EE NANOELECTRONIC DEVICES
Adaline Pollich
GPA 3.81


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in Electrical Engineering

This 12 page Class Notes was uploaded by Adaline Pollich on Friday October 23, 2015. The Class Notes belongs to EE 599 at University of Kentucky taught by Staff in Fall. Since its upload, it has received 31 views. For similar materials see /class/228323/ee-599-university-of-kentucky in Electrical Engineering at University of Kentucky.




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/23/15
RealTime Linux RTLinux Intro RT RT RT Linux RTos Thread Thread 39 quot Thread 3 Hardware CPU Memory Disks eic Linux with RT extensions RTOS w Linux RTLinux Programs RTLinux programs run as kernel modules o No virtual memory protection in kernel space o Many library routines not available o RT threads cannot call many kernel functions Boot to RTLinux kernel Multilab machines have multiple kernels Press shift key before LILO prompt Select EE599RTLINUX at LILO prompt uname r tells active kernel release name aster uname r 2418 rtl32 prel Module Basics Modules can be installed without rebooting o Each module has ltgt Initialization Routine ltgtCleanup Routine ltgt Other code Simple Module helloc define KERNEL define MODULE include ltlinuXmodversionshgt include ltlinuXmodulehgt int initmodulevoid printkquotHello worldnquot return 0 void cleanupmodulevoid printkquotGoodbye worldnquot Compiling and Using Kernel Modules aster 900 Wall c helloc helloc In function initmodule39 helloc9 warning implicit declaration of function printk39 aster sudo lsbininsmod helloo Hello World aster bM Od Module Size Used by hello 368 O unused vfat 9200 O unused msdos 4720 O unused fat 29024 O vfat msdos tulip 37392 1 aster sudo lsbinrmmod hello Goodbye world Always remove your modules when done RealTime Modules Declarations include ltrtlhgt include lttimehgt include ltrtlschedhgt pthreadt tasks2 void hellothrvoid arg void worldthrvoid arg RTLinux Modules lnit amp Cleanup int initmodulevoid pthreadcreateamptasks0 NULL hellothr NULL pthreadcreateamptasksl NULL worldthr NULL return 0 void cleanupmodulevoid pthreadcanceltasks0 pthreadjointasks0 NULL pthreadcanceltasksl pthreadjointasksl NULL RTLinux Modules RT Threads void hellothrvoid arg pthread makeperiodicnp pthr dself gethrtime 500000000 whilel pthreadwaitnp rtlprintfquothellonquot return 0 worldthr is similar RTLinux Modules Compilation aster catMakeme include homesdieteree599rtlinuXrtlmk rthelloc rthelloc asterlnake gcc DKERNEIL Wall Wstrict prototypes Wno trigraphs fno strict aliasing fno common pipe mpreferred stack boundary2 marchk6 DMODULE g DRTL DLOOSEKERNELNAMES 02 Iual d7csguestdieteree599rtlinuxlinuxinclude Iaalual d7csguestdieteree599rtlinux 32 prelinclude Iaalual d7csguestdieteree599rtlinux 32 prelincludecompat Iaalual d7csguestdieteree599rtlinux 32 prelincludeposix c o rthelloc rthelloc homesdieteree599rtlinuxscripts should be in PATH aster rtlinux start rthelloc aster rtlinux stop rthello Other Useful RTLinux Features o Waiting a set amount of time int nanosleepreq remain int clocknanosleepclk flags req remain HFOS int rtfcreatefifo size int rtfdestroyfifo int rtfgetfifo buf count int rtfputfifo buf count More Info on RTLinux o Manual pages white papers example code o Useful Links section of EE 599 web page


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Janice Dongeun University of Washington

"I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.