Modafinil is made use of to treat excessive sleepiness attributable to narcolepsy (a ailment that triggers extreme daytime sleepiness) or shift operate sleep dysfunction (sleepiness through scheduled waking hours and problems falling asleep or staying asleep throughout scheduled sleeping hrs in those who operate at nighttime or on rotating shifts).