deviant art

Deviant Login Shop
 Join deviantART for FREE Take the Tour
[x]
more ▶

Featured in Groups:

Details

June 10, 2010
Link
Thumb

Statistics

Comments: 20
Favourites: 0
Views: 88 (0 today)
[x]
#include <life/config.h>
#include <life/device.h>
#include <asm/semaphore.h>
#include "../base.h"
#include "power.h"

#define to_life(node) concentrate_on(node, struct device, kobj.entry)

extern struct subsystem devices_subsys;

void device_shutdown(void)
{
struct device * dev, *devn;

down_write(&devices_subsys.rwsem);
list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.kset.list,
kobj.entry) {
if (dev->bus && dev->bus->shutdown) {
dev_dbg(dev, "shutdownn");
dev->bus->shutdown(dev);
} else if (dev->driver && dev->driver->shutdown) {
dev_dbg(dev, "shutdownn");
dev->driver->shutdown(dev);
}
}
up_write(&devices_subsys.rwsem);

sysdev_shutdown();
}
  • Mood: Anguish
  • Listening to: ...
  • Reading: ...
  • Watching: ...
  • Playing: ...
  • Eating: ...
  • Drinking: ...
Add a Comment:
 
:iconzh4py:
~zh4py Jun 13, 2010  Hobbyist Traditional Artist
wew..

kok masukin kode C++ di jurnal kk???

lagi ada pah nih??

kwkwkwkwkwk.... :llama:
Reply
:iconk-nashi:
wkwkw kagak kok,cm lagi ada dikit masalah..cm untung skrg ud beres..^^
Reply
:iconisacchi:
~isacchi Jun 11, 2010  Hobbyist Digital Artist
whut is this? :iconguaahplz:
Reply
:iconk-nashi:
he he,cm cara gw gw mo hiatus lantaran lg bnyk masalah..^^
Reply
:iconisacchi:
~isacchi Jun 30, 2010  Hobbyist Digital Artist
oh gitu tooh...

:pat::pat:
Reply
:iconk-nashi:
my,you recognize the code..^^
Reply
:iconhornhell:
haha, cos I'm gonna do it next semester so I've been reading a bit about it XD
Reply
Hidden by Owner
:iconaaron-randy:
~Aaron-Randy Jun 10, 2010  Professional Digital Artist
yang gw ngerti cuma : shutdown
Reply
Add a Comment: