Unix Technical Forum

altering a kernel data structure ssd sd_lun

This is a discussion on altering a kernel data structure ssd sd_lun within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Can anyone tell me if it is possible to modify a driver variable with mdb? The ssd driver module ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2008, 02:25 PM
victor.engle@gmail.com
 
Posts: n/a
Default altering a kernel data structure ssd sd_lun

Can anyone tell me if it is possible to modify a driver variable with
mdb?

The ssd driver module has a struct for each lun and the struct has a
member called un_retry_count. The default value is 0x3 and there is no
user accessible method to change it for Solaris 10.

I can see the current value using this command...
echo "*ssd_state::walk softstate |:rint -t struct sd_lun
un_retry_count "| mdb -k

OUTPUT...
uint_t un_retry_count = 0x3
uint_t un_retry_count = 0x3
uint_t un_retry_count = 0x3

Is it possible to modify the value of sd_lun.un_retry_count per lun? I
tried the following, but no luck...

echo "*ssd_state::walk softstate |::typeset struct sd_lun
un_retry_count 0x5 "| mdb -kw

No error occurs but the value is not changed.

I only want to change this value on a test machine for a specific test
case.

Thanks,
Vic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com