Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Sistemi operativi I > progettino
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
fabi0
.amico.

User info:
Registered: Nov 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Tecnologie dela comunicazione
Anno: 1
Time Online: 3:17:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Larios
si, io ho fatto cosi'


qualcuno è riuscito a montare il filesystem con il comando

mount -t minix -o loop,offset=$((N*512)) soluzione.img /mnt

per vedere se è tutto ok..?


Sì, l'ho montato, e si vedono tutti i files.

16-05-2008 12:49
Click Here to See the Profile for fabi0 Click here to Send fabi0 a Private Message Find more posts by fabi0 Add fabi0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

che distribuzione di linux usi? e che versione?

16-05-2008 13:18
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fabi0
.amico.

User info:
Registered: Nov 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Tecnologie dela comunicazione
Anno: 1
Time Online: 3:17:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Larios
che distribuzione di linux usi? e che versione?


ubuntu 7.10



? come avete fatto questo prototipo:

_PROTOTYPE( int down, (void)); //al posto di void bisogna mettere l'identificativo del semaforo?

16-05-2008 13:20
Click Here to See the Profile for fabi0 Click here to Send fabi0 a Private Message Find more posts by fabi0 Add fabi0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si, poi devi passare quel parametro con message...

16-05-2008 13:32
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fabi0
.amico.

User info:
Registered: Nov 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Tecnologie dela comunicazione
Anno: 1
Time Online: 3:17:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Larios
si, poi devi passare quel parametro con message...


quindi, non ho capito, bisogna lasciare void?
_PROTOTYPE( int down, (void));

non si può passargli direttamente:
_PROTOTYPE( int down, (int s));

16-05-2008 13:35
Click Here to See the Profile for fabi0 Click here to Send fabi0 a Private Message Find more posts by fabi0 Add fabi0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pamarcan
.primate.

User info:
Registered: Mar 2006
Posts: 68 (0.01 al dì)
Location:
Corso: informatica
Anno:
Time Online: 1 Day, 7:02:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sì, la seconda che hai detto, poi nel corpo della procedura metti nel messaggio l'intero così:

..
messaggio m;
m.m1_i1="il parametro intero"

poi la _syscall.... come quella fatta al laboratorio

e fai lo stesso con la up e la sema_init

16-05-2008 13:52
Click Here to See the Profile for pamarcan Click here to Send pamarcan a Private Message Find more posts by pamarcan Add pamarcan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fabi0
.amico.

User info:
Registered: Nov 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Tecnologie dela comunicazione
Anno: 1
Time Online: 3:17:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In che file va messo questo:
..
messaggio m;
m.m1_i1="il parametro intero"


GRAZIE

16-05-2008 13:58
Click Here to See the Profile for fabi0 Click here to Send fabi0 a Private Message Find more posts by fabi0 Add fabi0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
QeSaRNeRON
.amico.

User info:
Registered: Nov 2007
Posts: 21 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 5:28:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

raga... ma la soluzione
con part
che e' la storia della matricola???
l'inizio deve essere 0 0 22?? *(somma numeri matricola)??

16-05-2008 15:16
Click Here to See the Profile for QeSaRNeRON Click here to Send QeSaRNeRON a Private Message Find more posts by QeSaRNeRON Add QeSaRNeRON to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
QeSaRNeRON
.amico.

User info:
Registered: Nov 2007
Posts: 21 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 5:28:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by fabi0
Sì, l'ho montato, e si vedono tutti i files.

devi fare il modprobe di minix
se ti dice che non trova il modulo devi ricompilarti il kernel dando un occhio di inserire minix nella sezione filesistem

quello che devo fare io adesso.
che palle
vaffanculo! >.<

16-05-2008 15:18
Click Here to See the Profile for QeSaRNeRON Click here to Send QeSaRNeRON a Private Message Find more posts by QeSaRNeRON Add QeSaRNeRON to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
QeSaRNeRON
.amico.

User info:
Registered: Nov 2007
Posts: 21 (0.00 al dì)
Location:
Corso:
Anno:
Time Online: 5:28:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Larios
che distribuzione di linux usi? e che versione?

ho sbagliato a quotare... guarda sopra xD

16-05-2008 15:20
Click Here to See the Profile for QeSaRNeRON Click here to Send QeSaRNeRON a Private Message Find more posts by QeSaRNeRON Add QeSaRNeRON to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lp656330
.illuminato.

User info:
Registered: Jul 2006
Posts: 154 (0.02 al dì)
Location: monza
Corso: informatica
Anno: laureata con 108/110
Time Online: 19:32:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by fabi0
quindi, non ho capito, bisogna lasciare void?
_PROTOTYPE( int down, (void));

non si può passargli direttamente:
_PROTOTYPE( int down, (int s));

io ho fatto "_PROTOTYPE( int down, (int s)); "

16-05-2008 15:24
Click Here to See the Profile for lp656330 Click here to Send lp656330 a Private Message Find more posts by lp656330 Add lp656330 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pamarcan
.primate.

User info:
Registered: Mar 2006
Posts: 68 (0.01 al dì)
Location:
Corso: informatica
Anno:
Time Online: 1 Day, 7:02:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per fabi0:

devi modificare /usr/src/lib/other/sema.c

ossia dove ci sono i wrapper

16-05-2008 15:26
Click Here to See the Profile for pamarcan Click here to Send pamarcan a Private Message Find more posts by pamarcan Add pamarcan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lp656330
.illuminato.

User info:
Registered: Jul 2006
Posts: 154 (0.02 al dì)
Location: monza
Corso: informatica
Anno: laureata con 108/110
Time Online: 19:32:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by fabi0
In che file va messo questo:
..
messaggio m;
m.m1_i1="il parametro intero"


GRAZIE

questo lo devi mettere nel file dove crei il wrapper
che il professor Monga a lezione aveva creato in
/usr/src/lib/other
dove aveva creato il file c

16-05-2008 15:27
Click Here to See the Profile for lp656330 Click here to Send lp656330 a Private Message Find more posts by lp656330 Add lp656330 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
lp656330
.illuminato.

User info:
Registered: Jul 2006
Posts: 154 (0.02 al dì)
Location: monza
Corso: informatica
Anno: laureata con 108/110
Time Online: 19:32:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by QeSaRNeRON
raga... ma la soluzione
con part
che e' la storia della matricola???
l'inizio deve essere 0 0 22?? *(somma numeri matricola)??

ipotizza che la tua matricola sia 666666, fai la somma delle cifre 6+6+6+6+6+6=36 e quando vai in
part /dev/c0d1
devi definire come sector base il valore "36" che è la somma della tua matricola 666666

16-05-2008 15:30
Click Here to See the Profile for lp656330 Click here to Send lp656330 a Private Message Find more posts by lp656330 Add lp656330 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fabi0
.amico.

User info:
Registered: Nov 2007
Posts: 20 (0.00 al dì)
Location:
Corso: Tecnologie dela comunicazione
Anno: 1
Time Online: 3:17:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by lp656330
questo lo devi mettere nel file dove crei il wrapper
che il professor Monga a lezione aveva creato in
/usr/src/lib/other
dove aveva creato il file c


In questo?

#include <lib.h>
#include <unistd.h>

PUBLIC int up()
{
message m;

if (_syscall(SS_PROC_NR, SS_UP, &m) < 0) return(-1);
return 0;
}

PUBLIC int down()
{
message m;

if (_syscall(SS_PROC_NR, SS_DOWN, &m) < 0) return(-1);
return 0;
}

16-05-2008 15:39
Click Here to See the Profile for fabi0 Click here to Send fabi0 a Private Message Find more posts by fabi0 Add fabi0 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:28.    Post New Thread    Post A Reply
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.118 seconds (63.56% PHP - 36.44% MySQL) con 24 query.